Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4fce61d authored by Kay Sievers's avatar Kay Sievers Committed by Linus Torvalds
Browse files

usb host: fix platform driver hotplug/coldplug



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

[dbrownell@users.sourceforge.net: more drivers; registration fixes]
Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f34c32f1
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1684,6 +1684,9 @@ static int isp116x_resume(struct platform_device *dev)

#endif

/* work with hotplug and coldplug */
MODULE_ALIAS("platform:isp116x-hcd");

static struct platform_driver isp116x_driver = {
	.probe = isp116x_probe,
	.remove = isp116x_remove,
@@ -1691,6 +1694,7 @@ static struct platform_driver isp116x_driver = {
	.resume = isp116x_resume,
	.driver = {
		.name = (char *)hcd_name,
		.owner	= THIS_MODULE,
	},
};

+1 −2
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ static int ohci_hcd_at91_drv_resume(struct platform_device *pdev)
#define ohci_hcd_at91_drv_resume  NULL
#endif

MODULE_ALIAS("at91_ohci");
MODULE_ALIAS("platform:at91_ohci");

static struct platform_driver ohci_hcd_at91_driver = {
	.probe		= ohci_hcd_at91_drv_probe,
@@ -368,4 +368,3 @@ static struct platform_driver ohci_hcd_at91_driver = {
		.owner	= THIS_MODULE,
	},
};
+1 −0
Original line number Diff line number Diff line
@@ -345,3 +345,4 @@ static struct platform_driver ohci_hcd_au1xxx_driver = {
	},
};

MODULE_ALIAS("platform:au1xxx-ohci");
+2 −0
Original line number Diff line number Diff line
@@ -211,6 +211,8 @@ static struct platform_driver ohci_hcd_ep93xx_driver = {
#endif
	.driver		= {
		.name	= "ep93xx-ohci",
		.owner	= THIS_MODULE,
	},
};

MODULE_ALIAS("platform:ep93xx-ohci");
+1 −0
Original line number Diff line number Diff line
@@ -251,3 +251,4 @@ static struct platform_driver ohci_hcd_lh7a404_driver = {
	},
};

MODULE_ALIAS("platform:lh7a404-ohci");
Loading