]> err.no Git - linux-2.6/blobdiff - drivers/usb/host/ohci-sm501.c
USB: minor ehci xITD simplifications
[linux-2.6] / drivers / usb / host / ohci-sm501.c
index a97070142869e69d1d79b6d3e0d17c690b047238..8ffcd3e5f56bb0efaf7bc67026bff491c4807bb0 100644 (file)
@@ -242,6 +242,9 @@ static int ohci_sm501_resume(struct platform_device *pdev)
        usb_hcd_resume_root_hub(platform_get_drvdata(pdev));
        return 0;
 }
+#else
+#define ohci_sm501_suspend NULL
+#define ohci_sm501_resume NULL
 #endif
 
 /*-------------------------------------------------------------------------*/
@@ -253,12 +256,11 @@ static struct platform_driver ohci_hcd_sm501_driver = {
        .probe          = ohci_hcd_sm501_drv_probe,
        .remove         = ohci_hcd_sm501_drv_remove,
        .shutdown       = usb_hcd_platform_shutdown,
-#ifdef CONFIG_PM
        .suspend        = ohci_sm501_suspend,
        .resume         = ohci_sm501_resume,
-#endif
        .driver         = {
                .owner  = THIS_MODULE,
                .name   = "sm501-usb",
        },
 };
+MODULE_ALIAS("platform:sm501-usb");