ARM: mmp: add an instance of pxa-usb-phy to ttc_dkb and aspenite
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 28 Nov 2018 17:53:22 +0000 (18:53 +0100)
committerOlof Johansson <olof@lixom.net>
Fri, 30 Nov 2018 23:40:32 +0000 (15:40 -0800)
This will replace the *_pdata.phy_{de,}init()

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/mach-mmp/aspenite.c
arch/arm/mach-mmp/ttc_dkb.c

index 6c2ebf01893afeb9e5ab76a2e7a57026db684b4f..23f99976b5f5658ae854a6a917497da8a6b1818c 100644 (file)
@@ -256,6 +256,10 @@ static void __init common_init(void)
        /* off-chip devices */
        platform_device_register(&smc91x_device);
 
+#if IS_ENABLED(CONFIG_PHY_PXA_USB)
+       platform_device_register(&pxa168_device_usb_phy);
+#endif
+
 #if IS_ENABLED(CONFIG_USB_EHCI_MV)
        pxa168_add_usb_host(&pxa168_sph_pdata);
 #endif
index c7897fb2b6dadd82c20536ccc5147cee20431597..767dcb23ee1cd18b001d3ec4d750a83099c256bc 100644 (file)
@@ -282,6 +282,10 @@ 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_PHY_PXA_USB)
+       platform_device_register(&pxa168_device_usb_phy);
+#endif
+
 #if IS_ENABLED(CONFIG_USB_MV_UDC)
        pxa168_device_u2o.dev.platform_data = &ttc_usb_pdata;
        platform_device_register(&pxa168_device_u2o);