Skip to contentSkip to conversation

power_supply: Fix modalias for charger-manager

PATCH Applied 함명주 2 participants 2 messages Jan 11, 2012 – Feb 1, 2012

lore
Share & tools
lore

함명주

author Acked-by
#0 lore raw

Written by Axel Lin<[email protected]>

Quoted 8 lines

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.

Thanks.

Quoted 29 lines
---
 drivers/power/charger-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/power/charger-manager.c +2 -2
index 0378d01..88fd971 100644
@@ -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��� �띠�◀?뻀�

#1 lore raw
Quoted 6 lines · 함명주

Written by Axel Lin<[email protected]>

Quoted 5 lines

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.

Quoted 7 lines
Quoted 3 lines

Also make charger_manager_id static as it is only used in this driver.

Thanks.

Applied, thanks!

Signature · 2 lines
Anton Vorontsov
Email: [email protected]