Commit 23386fe5 authored by Kay Sievers's avatar Kay Sievers Committed by Paul Mackerras

[POWERPC] macintosh/windfarm: Fix platform driver hotplug/coldplug

Since 43cc71ee, the platform modalias
is prefixed with "platform:".  Add MODULE_ALIAS() to the hotpluggable
"macintosh" platform drivers, to re-enable auto loading.

[dbrownell@users.sourceforge.net: registration fixes]
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent df698690
...@@ -668,7 +668,7 @@ static struct platform_driver wf_pm112_driver = { ...@@ -668,7 +668,7 @@ static struct platform_driver wf_pm112_driver = {
.remove = __devexit_p(wf_pm112_remove), .remove = __devexit_p(wf_pm112_remove),
.driver = { .driver = {
.name = "windfarm", .name = "windfarm",
.bus = &platform_bus_type, .owner = THIS_MODULE,
}, },
}; };
...@@ -711,3 +711,4 @@ module_exit(wf_pm112_exit); ...@@ -711,3 +711,4 @@ module_exit(wf_pm112_exit);
MODULE_AUTHOR("Paul Mackerras <paulus@samba.org>"); MODULE_AUTHOR("Paul Mackerras <paulus@samba.org>");
MODULE_DESCRIPTION("Thermal control for PowerMac11,2"); MODULE_DESCRIPTION("Thermal control for PowerMac11,2");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:windfarm");
...@@ -770,7 +770,7 @@ static struct platform_driver wf_smu_driver = { ...@@ -770,7 +770,7 @@ static struct platform_driver wf_smu_driver = {
.remove = __devexit_p(wf_smu_remove), .remove = __devexit_p(wf_smu_remove),
.driver = { .driver = {
.name = "windfarm", .name = "windfarm",
.bus = &platform_bus_type, .owner = THIS_MODULE,
}, },
}; };
...@@ -810,4 +810,4 @@ module_exit(wf_smu_exit); ...@@ -810,4 +810,4 @@ module_exit(wf_smu_exit);
MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>"); MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");
MODULE_DESCRIPTION("Thermal control logic for iMac G5"); MODULE_DESCRIPTION("Thermal control logic for iMac G5");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:windfarm");
...@@ -702,7 +702,7 @@ static struct platform_driver wf_smu_driver = { ...@@ -702,7 +702,7 @@ static struct platform_driver wf_smu_driver = {
.remove = __devexit_p(wf_smu_remove), .remove = __devexit_p(wf_smu_remove),
.driver = { .driver = {
.name = "windfarm", .name = "windfarm",
.bus = &platform_bus_type, .owner = THIS_MODULE,
}, },
}; };
...@@ -742,3 +742,4 @@ MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>"); ...@@ -742,3 +742,4 @@ MODULE_AUTHOR("Benjamin Herrenschmidt <benh@kernel.crashing.org>");
MODULE_DESCRIPTION("Thermal control logic for PowerMac9,1"); MODULE_DESCRIPTION("Thermal control logic for PowerMac9,1");
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:windfarm");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment