usb: host: uhci-platform: Fix module autoload for OF platform driver
authorLuis de Bethencourt <luisbg@osg.samsung.com>
Sat, 19 Sep 2015 13:10:59 +0000 (14:10 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 09:51:58 +0000 (10:51 +0100)
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.

Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/uhci-platform.c

index 3a3e3eeba291882b03484d6048a508194d57d82e..32a6f3d8deecf54abd4deaaa330bcd44f752cc11 100644 (file)
@@ -140,6 +140,7 @@ static const struct of_device_id platform_uhci_ids[] = {
        { .compatible = "platform-uhci", },
        {}
 };
+MODULE_DEVICE_TABLE(of, platform_uhci_ids);
 
 static struct platform_driver uhci_platform_driver = {
        .probe          = uhci_hcd_platform_probe,