usb: gadget: fsl-mxc-udc: replace cpu_is_xxx() with platform_device_id
As mach/hardware.h is deleted, we need to use platform_device_id to differentiate SoCs. Besides, one cpu_is_mx35 is useless as it has already used pdata to differentiate runtime Meanwhile we update the platform code accordingly. Signed-off-by:Peter Chen <peter.chen@freescale.com> Signed-off-by:
Felipe Balbi <balbi@ti.com>
Showing
- arch/arm/mach-imx/devices/devices-common.h 1 addition, 0 deletionsarch/arm/mach-imx/devices/devices-common.h
- arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c 8 additions, 7 deletionsarch/arm/mach-imx/devices/platform-fsl-usb2-udc.c
- drivers/usb/gadget/fsl_mxc_udc.c 10 additions, 14 deletionsdrivers/usb/gadget/fsl_mxc_udc.c
- drivers/usb/gadget/fsl_udc_core.c 22 additions, 16 deletionsdrivers/usb/gadget/fsl_udc_core.c
Loading
Please register or sign in to comment