ARM: mmp: fix pxa168_device_usb_phy use on aspenite
[muen/linux.git] / arch / arm / mach-mmp / ttc_dkb.c
index 767dcb23ee1cd18b001d3ec4d750a83099c256bc..09b53ace08acc955fcdbc7e880bd95989dd974de 100644 (file)
@@ -282,6 +282,7 @@ static void __init ttc_dkb_init(void)
                                 sizeof(struct pxa_gpio_platform_data));
        platform_add_devices(ARRAY_AND_SIZE(ttc_dkb_devices));
 
+#if IS_ENABLED(CONFIG_USB_SUPPORT)
 #if IS_ENABLED(CONFIG_PHY_PXA_USB)
        platform_device_register(&pxa168_device_usb_phy);
 #endif
@@ -300,6 +301,7 @@ static void __init ttc_dkb_init(void)
        pxa168_device_u2ootg.dev.platform_data = &ttc_usb_pdata;
        platform_device_register(&pxa168_device_u2ootg);
 #endif
+#endif
 
 #if IS_ENABLED(CONFIG_MMP_DISP)
        add_disp();