mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
power_supply: Fix modalias for charger-manager
Since 43cc71eed1, 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 <[email protected]>
Acked-by: MyungJoo Ham <[email protected]>
Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
da4dc0af6e
commit
1bbe24d465
1 changed files with 2 additions and 2 deletions
|
|
@ -974,10 +974,11 @@ static int __devexit charger_manager_remove(struct platform_device *pdev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const struct platform_device_id charger_manager_id[] = {
|
||||
static const struct platform_device_id charger_manager_id[] = {
|
||||
{ "charger-manager", 0 },
|
||||
{ },
|
||||
};
|
||||
MODULE_DEVICE_TABLE(platform, charger_manager_id);
|
||||
|
||||
static int cm_suspend_prepare(struct device *dev)
|
||||
{
|
||||
|
|
@ -1069,4 +1070,3 @@ module_exit(charger_manager_cleanup);
|
|||
MODULE_AUTHOR("MyungJoo Ham <[email protected]>");
|
||||
MODULE_DESCRIPTION("Charger Manager");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("charger-manager");
|
||||
|
|
|
|||
Loading…
Reference in a new issue