Patchwork [1/3] efikasb/mx: fix usbh1 initialisation

login
register
mail settings
Submitter Arnaud Patard (Rtp)
Date June 27, 2011, 8:41 p.m.
Message ID <20110627204115.709396491@rtp-net.org>
Download mbox | patch
Permalink /patch/102279/
State New
Headers show

Comments

Arnaud Patard (Rtp) - June 27, 2011, 8:41 p.m.
mx51_initialize_usb_hw() support introduced a small error. The usbh1 has
pdev->id equal to 1 not 0, so use pdev->id to make things less error-prone and
to fix that.

Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org>

Patch

Index: linux-2.6-submit/arch/arm/mach-mx5/mx51_efika.c
===================================================================
--- linux-2.6-submit.orig/arch/arm/mach-mx5/mx51_efika.c	2011-03-14 01:32:02.000000000 +0100
+++ linux-2.6-submit/arch/arm/mach-mx5/mx51_efika.c	2011-03-14 01:35:36.000000000 +0100
@@ -215,7 +215,7 @@  static int initialize_usbh1_port(struct
 
 	mdelay(10);
 
-	return mx51_initialize_usb_hw(0, MXC_EHCI_ITC_NO_THRESHOLD);
+	return mx51_initialize_usb_hw(pdev->id, MXC_EHCI_ITC_NO_THRESHOLD);
 }
 
 static struct mxc_usbh_platform_data usbh1_config = {