spi: fix platform driver hotplug/coldplug
Since 43cc71eed1
, the platform modalias is
prefixed with "platform:". Add MODULE_ALIAS() to the hotpluggable SPI
platform drivers, to allow module 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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
8d1c98b0b5
commit
7e38c3c445
@@ -500,6 +500,9 @@ static int __exit mpc52xx_psc_spi_remove(struct platform_device *dev)
|
||||
return mpc52xx_psc_spi_do_remove(&dev->dev);
|
||||
}
|
||||
|
||||
/* work with hotplug and coldplug */
|
||||
MODULE_ALIAS("platform:mpc52xx-psc-spi");
|
||||
|
||||
static struct platform_driver mpc52xx_psc_spi_platform_driver = {
|
||||
.remove = __exit_p(mpc52xx_psc_spi_remove),
|
||||
.driver = {
|
||||
|
Reference in New Issue
Block a user