usb host: fix platform driver hotplug/coldplug
Since 43cc71eed1
, 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: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: Greg KH <greg@kroah.com>
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
f34c32f13c
commit
f4fce61d41
@@ -1684,14 +1684,18 @@ 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,
|
||||
.suspend = isp116x_suspend,
|
||||
.resume = isp116x_resume,
|
||||
.driver = {
|
||||
.name = (char *)hcd_name,
|
||||
},
|
||||
.name = (char *)hcd_name,
|
||||
.owner = THIS_MODULE,
|
||||
},
|
||||
};
|
||||
|
||||
/*-----------------------------------------------------------------*/
|
||||
|
Reference in New Issue
Block a user