提交 1bbe24d4 编写于 作者: A Axel Lin 提交者: Anton Vorontsov

power_supply: Fix modalias for charger-manager

Since 43cc71ee, 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: NAxel Lin <axel.lin@gmail.com>
Acked-by: NMyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: NAnton Vorontsov <cbouatmailru@gmail.com>
上级 da4dc0af
...@@ -974,10 +974,11 @@ static int __devexit charger_manager_remove(struct platform_device *pdev) ...@@ -974,10 +974,11 @@ static int __devexit charger_manager_remove(struct platform_device *pdev)
return 0; return 0;
} }
const struct platform_device_id charger_manager_id[] = { static const struct platform_device_id charger_manager_id[] = {
{ "charger-manager", 0 }, { "charger-manager", 0 },
{ }, { },
}; };
MODULE_DEVICE_TABLE(platform, charger_manager_id);
static int cm_suspend_prepare(struct device *dev) static int cm_suspend_prepare(struct device *dev)
{ {
...@@ -1069,4 +1070,3 @@ module_exit(charger_manager_cleanup); ...@@ -1069,4 +1070,3 @@ module_exit(charger_manager_cleanup);
MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>"); MODULE_AUTHOR("MyungJoo Ham <myungjoo.ham@samsung.com>");
MODULE_DESCRIPTION("Charger Manager"); MODULE_DESCRIPTION("Charger Manager");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("charger-manager");
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册