Skip to content

Commit

Permalink
efikasb/mx: fix usbh1 initialisation
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Sascha Hauer <[email protected]>
  • Loading branch information
thertp authored and saschahauer committed Jul 26, 2011
1 parent 4e606d6 commit 37df0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-mx5/mx51_efika.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static int initialize_usbh1_port(struct platform_device *pdev)

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 = {
Expand Down

0 comments on commit 37df0e5

Please sign in to comment.