diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-04-15 17:34:30 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-15 22:35:40 -0400 |
commit | 3c4ded9715c05724939c9a4bd72555c2ade71d97 (patch) | |
tree | cd1d98e77c75bbcbfa4922cb16970ec1aa6f4fbf /drivers/leds/leds-hp6xx.c | |
parent | 2b653e06ce2d70d21483f22ef1b1b63749c54223 (diff) |
leds: fix platform driver hotplug/coldplug
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
hotpluggable platform LED drivers, to re-enable auto loading.
[dbrownell@users.sourceforge.net: more drivers, registration fixes]
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Acked-by: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/leds/leds-hp6xx.c')
-rw-r--r-- | drivers/leds/leds-hp6xx.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/leds/leds-hp6xx.c b/drivers/leds/leds-hp6xx.c index 82d4ec384797..870f5a3789e8 100644 --- a/drivers/leds/leds-hp6xx.c +++ b/drivers/leds/leds-hp6xx.c | |||
@@ -90,6 +90,9 @@ static int hp6xxled_remove(struct platform_device *pdev) | |||
90 | return 0; | 90 | return 0; |
91 | } | 91 | } |
92 | 92 | ||
93 | /* work with hotplug and coldplug */ | ||
94 | MODULE_ALIAS("platform:hp6xx-led"); | ||
95 | |||
93 | static struct platform_driver hp6xxled_driver = { | 96 | static struct platform_driver hp6xxled_driver = { |
94 | .probe = hp6xxled_probe, | 97 | .probe = hp6xxled_probe, |
95 | .remove = hp6xxled_remove, | 98 | .remove = hp6xxled_remove, |
@@ -99,6 +102,7 @@ static struct platform_driver hp6xxled_driver = { | |||
99 | #endif | 102 | #endif |
100 | .driver = { | 103 | .driver = { |
101 | .name = "hp6xx-led", | 104 | .name = "hp6xx-led", |
105 | .owner = THIS_MODULE, | ||
102 | }, | 106 | }, |
103 | }; | 107 | }; |
104 | 108 | ||