diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-01-11 04:19:45 -0500 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2012-02-01 12:29:52 -0500 |
commit | 1bbe24d465db626fed050e0128a7244b9cb407f4 (patch) | |
tree | 2809ccfdf8a0e3df9f3596bf270d192be75a6bd8 /drivers/power | |
parent | da4dc0af6eeb131927fb602846437a50a42ca246 (diff) |
power_supply: Fix modalias for charger-manager
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
modalias is prefixed with "platform:".
Current code has the id_table, thus add MODULE_DEVICE_TABLE will
automatically setup the modalias.
Also make charger_manager_id static as it is only used in this driver.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/charger-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/charger-manager.c b/drivers/power/charger-manager.c index 0378d019efae..88fd9710bda2 100644 --- a/drivers/power/charger-manager.c +++ b/drivers/power/charger-manager.c | |||
@@ -974,10 +974,11 @@ static int __devexit charger_manager_remove(struct platform_device *pdev) | |||
974 | return 0; | 974 | return 0; |
975 | } | 975 | } |
976 | 976 | ||
977 | const struct platform_device_id charger_manager_id[] = { | 977 | static const struct platform_device_id charger_manager_id[] = { |
978 | { "charger-manager", 0 }, | 978 | { "charger-manager", 0 }, |
979 | { }, | 979 | { }, |
980 | }; | 980 | }; |
981 | MODULE_DEVICE_TABLE(platform, charger_manager_id); | ||
981 | 982 | ||
982 | static int cm_suspend_prepare(struct device *dev) | 983 | static int cm_suspend_prepare(struct device *dev) |
983 | { | 984 | { |
@@ -1069,4 +1070,3 @@ module_exit(charger_manager_cleanup); | |||
1069 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); | 1070 | MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); |
1070 | MODULE_DESCRIPTION("Charger Manager"); | 1071 | MODULE_DESCRIPTION("Charger Manager"); |
1071 | MODULE_LICENSE("GPL"); | 1072 | MODULE_LICENSE("GPL"); |
1072 | MODULE_ALIAS("charger-manager"); | ||