Skip to content

Commit d6c2385

Browse files
kaysieverstorvalds
authored andcommitted
misc: fix platform driver hotplug/coldplug
Since 43cc71e, the platform modalias is prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable 'misc' platform drivers, to re-enable auto loading. [dbrownell@users.sourceforge.net: bugfix, registration fixes] Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent c43f89c commit d6c2385

4 files changed

Lines changed: 7 additions & 0 deletions

File tree

‎drivers/misc/atmel-ssc.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ static struct platform_driver ssc_driver = {
154154
.remove = __devexit_p(ssc_remove),
155155
.driver = {
156156
.name = "ssc",
157+
.owner = THIS_MODULE,
157158
},
158159
};
159160

@@ -172,3 +173,4 @@ module_exit(ssc_exit);
172173
MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>");
173174
MODULE_DESCRIPTION("SSC driver for Atmel AVR32 and AT91");
174175
MODULE_LICENSE("GPL");
176+
MODULE_ALIAS("platform:ssc");

‎drivers/misc/atmel_pwm.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,3 +407,4 @@ module_exit(pwm_exit);
407407

408408
MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module");
409409
MODULE_LICENSE("GPL");
410+
MODULE_ALIAS("platform:atmel_pwm");

‎drivers/misc/hdpuftrs/hdpu_cpustate.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ static struct platform_driver hdpu_cpustate_driver = {
164164
.remove = hdpu_cpustate_remove,
165165
.driver = {
166166
.name = HDPU_CPUSTATE_NAME,
167+
.owner = THIS_MODULE,
167168
},
168169
};
169170

@@ -248,3 +249,4 @@ module_exit(cpustate_exit);
248249

249250
MODULE_AUTHOR("Brian Waite");
250251
MODULE_LICENSE("GPL");
252+
MODULE_ALIAS("platform:" HDPU_CPUSTATE_NAME);

‎drivers/misc/hdpuftrs/hdpu_nexus.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ static struct platform_driver hdpu_nexus_driver = {
5555
.remove = hdpu_nexus_remove,
5656
.driver = {
5757
.name = HDPU_NEXUS_NAME,
58+
.owner = THIS_MODULE,
5859
},
5960
};
6061

@@ -151,3 +152,4 @@ module_exit(nexus_exit);
151152

152153
MODULE_AUTHOR("Brian Waite");
153154
MODULE_LICENSE("GPL");
155+
MODULE_ALIAS("platform:" HDPU_NEXUS_NAME);

0 commit comments

Comments
 (0)