From b14efae4d3d254b1ed0366eaef0398403aa7b703 Mon Sep 17 00:00:00 2001 From: Frank Li Date: Mon, 12 Apr 2010 12:24:18 +0800 Subject: ENGR00122435 iMX23 Support USB current draw and fix power switch issue Support USB current draw on mx23 and fix power switch issue. Signed-off-by: Frank Li Signed-off-by: Alejandro Gonzalez --- arch/arm/mach-mx23/usb_dr.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'arch') diff --git a/arch/arm/mach-mx23/usb_dr.c b/arch/arm/mach-mx23/usb_dr.c index 1a196e70458a..13f9a296909c 100644 --- a/arch/arm/mach-mx23/usb_dr.c +++ b/arch/arm/mach-mx23/usb_dr.c @@ -164,5 +164,8 @@ void fsl_phy_set_power(struct fsl_xcvr_ops *this, gpio_free(USB_POWER_ENABLE); } -module_init(usb_dr_init); - +#ifdef CONFIG_MXS_VBUS_CURRENT_DRAW + fs_initcall(usb_dr_init); +#else + module_init(usb_dr_init); +#endif -- cgit v1.2.3