net drivers: fix platform driver hotplug/coldplug
Since 43cc71eed1
, the platform modalias is
prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable network
platform drivers, to re-enable auto loading.
NOTE: didn't change drivers/net/fs_enet/fs_enet-main.c "old binding" support.
That looks problematic in the first place (it even uses the ancient "struct
device_driver" binding scheme for platform_bus!) and I suspect it will vanish
soonish when arch/powerpc rules the world. Also, drivers/net/ne.c would have
needed more thought to sort out.
[akpm@linux-foundation.org: fix sgiseeq.c]
[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>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Vitaly Bordug <vitb@kernel.crashing.org>
Cc: Dale Farnsworth <dale@farnsworth.org>
Cc: Ben Dooks <ben-linux@fluff.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Andrew Victor <andrew@sanpeople.com>
Cc: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
此提交包含在:
@@ -60,6 +60,7 @@ static struct platform_driver ali_ircc_driver = {
|
||||
.resume = ali_ircc_resume,
|
||||
.driver = {
|
||||
.name = ALI_IRCC_DRIVER_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -2256,6 +2257,7 @@ static void FIR2SIR(int iobase)
|
||||
MODULE_AUTHOR("Benjamin Kong <benjamin_kong@ali.com.tw>");
|
||||
MODULE_DESCRIPTION("ALi FIR Controller Driver");
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:" ALI_IRCC_DRIVER_NAME);
|
||||
|
||||
|
||||
module_param_array(io, int, NULL, 0);
|
||||
|
@@ -897,6 +897,7 @@ static int pxa_irda_remove(struct platform_device *_dev)
|
||||
static struct platform_driver pxa_ir_driver = {
|
||||
.driver = {
|
||||
.name = "pxa2xx-ir",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
.probe = pxa_irda_probe,
|
||||
.remove = pxa_irda_remove,
|
||||
@@ -918,3 +919,4 @@ module_init(pxa_irda_init);
|
||||
module_exit(pxa_irda_exit);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
MODULE_ALIAS("platform:pxa2xx-ir");
|
||||
|
@@ -1008,6 +1008,7 @@ static struct platform_driver sa1100ir_driver = {
|
||||
.resume = sa1100_irda_resume,
|
||||
.driver = {
|
||||
.name = "sa11x0-ir",
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1041,3 +1042,4 @@ MODULE_LICENSE("GPL");
|
||||
MODULE_PARM_DESC(power_level, "IrDA power level, 1 (low) to 3 (high)");
|
||||
MODULE_PARM_DESC(tx_lpm, "Enable transmitter low power (1.6us) mode");
|
||||
MODULE_PARM_DESC(max_rate, "Maximum baud rate (4000000, 115200, 57600, 38400, 19200, 9600)");
|
||||
MODULE_ALIAS("platform:sa11x0-ir");
|
||||
|
新增問題並參考
封鎖使用者