power_supply: Fix modalias for charger-manager
함명주
Acked-byWritten by Axel Lin<[email protected]>
Quoted 8 lines
Since
43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:".
Current code has theid_table, thus addMODULE_DEVICE_TABLEwill automatically setup the modalias.Also make
charger_manager_idstatic as it is only used in this driver.Signed-off-by Axel Lin <[email protected]>
Thanks.
Acked-by MyungJoo Ham <[email protected]>
Quoted 29 lines
--- drivers/power/charger-manager.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/power/charger-manager.c +2
-2@@ -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" );Signature · 1 line
1.7.5.4
�淸�{.n�+돴윯돪�+%듚�깁負쪐w��{.n�+돴쪐{깸G쳺��{ay����,j�f"톒쉹��묎�z_溫(�쉸듶줷"얎�m����G쳺�◀?솳鈺�&x�~뤳턨O뺞촾퇉v�^�m����띠�◀?뻀�
Anton Vorontsov
AppliedQuoted 6 lines · 함명주
Written by Axel Lin<[email protected]>
Quoted 5 lines
Since
43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform modalias is prefixed with "platform:".
Current code has theid_table, thus addMODULE_DEVICE_TABLEwill automatically setup the modalias.
Quoted 7 lines
Quoted 3 lines
Also make
charger_manager_idstatic as it is only used in this driver.Signed-off-by Axel Lin <[email protected]>Thanks.
Acked-by MyungJoo Ham <[email protected]>
Applied, thanks!
Signature · 2 lines
Anton Vorontsov Email: [email protected]