提交 d6c23850 编写于 作者: K Kay Sievers 提交者: Linus Torvalds

misc: fix platform driver hotplug/coldplug

Since 43cc71ee, 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: NKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c43f89c2
...@@ -154,6 +154,7 @@ static struct platform_driver ssc_driver = { ...@@ -154,6 +154,7 @@ static struct platform_driver ssc_driver = {
.remove = __devexit_p(ssc_remove), .remove = __devexit_p(ssc_remove),
.driver = { .driver = {
.name = "ssc", .name = "ssc",
.owner = THIS_MODULE,
}, },
}; };
...@@ -172,3 +173,4 @@ module_exit(ssc_exit); ...@@ -172,3 +173,4 @@ module_exit(ssc_exit);
MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>"); MODULE_AUTHOR("Hans-Christian Egtvedt <hcegtvedt@atmel.com>");
MODULE_DESCRIPTION("SSC driver for Atmel AVR32 and AT91"); MODULE_DESCRIPTION("SSC driver for Atmel AVR32 and AT91");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:ssc");
...@@ -407,3 +407,4 @@ module_exit(pwm_exit); ...@@ -407,3 +407,4 @@ module_exit(pwm_exit);
MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module"); MODULE_DESCRIPTION("Driver for AT32/AT91 PWM module");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:atmel_pwm");
...@@ -164,6 +164,7 @@ static struct platform_driver hdpu_cpustate_driver = { ...@@ -164,6 +164,7 @@ static struct platform_driver hdpu_cpustate_driver = {
.remove = hdpu_cpustate_remove, .remove = hdpu_cpustate_remove,
.driver = { .driver = {
.name = HDPU_CPUSTATE_NAME, .name = HDPU_CPUSTATE_NAME,
.owner = THIS_MODULE,
}, },
}; };
...@@ -248,3 +249,4 @@ module_exit(cpustate_exit); ...@@ -248,3 +249,4 @@ module_exit(cpustate_exit);
MODULE_AUTHOR("Brian Waite"); MODULE_AUTHOR("Brian Waite");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" HDPU_CPUSTATE_NAME);
...@@ -55,6 +55,7 @@ static struct platform_driver hdpu_nexus_driver = { ...@@ -55,6 +55,7 @@ static struct platform_driver hdpu_nexus_driver = {
.remove = hdpu_nexus_remove, .remove = hdpu_nexus_remove,
.driver = { .driver = {
.name = HDPU_NEXUS_NAME, .name = HDPU_NEXUS_NAME,
.owner = THIS_MODULE,
}, },
}; };
...@@ -151,3 +152,4 @@ module_exit(nexus_exit); ...@@ -151,3 +152,4 @@ module_exit(nexus_exit);
MODULE_AUTHOR("Brian Waite"); MODULE_AUTHOR("Brian Waite");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" HDPU_NEXUS_NAME);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册