From: Roger Quadros Date: Tue, 8 Jan 2013 14:01:52 +0000 (+0200) Subject: mfd: omap-usb-host: Update nports in platform_data X-Git-Tag: v3.10-rc1~86^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=662e469e91d85438444703aa60dc35ac27b06773;p=profile%2Fivi%2Fkernel-x86-ivi.git mfd: omap-usb-host: Update nports in platform_data EHCI driver would need to know the number of ports available on the platform. We set the nports parameter of platform_data based on IP version if it was not already provided. Signed-off-by: Roger Quadros Acked-by: Felipe Balbi Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c index 35a96e7..2520fac 100644 --- a/drivers/mfd/omap-usb-host.c +++ b/drivers/mfd/omap-usb-host.c @@ -560,6 +560,7 @@ static int usbhs_omap_probe(struct platform_device *pdev) omap->usbhs_rev, omap->nports); break; } + pdata->nports = omap->nports; } i = sizeof(struct clk *) * omap->nports;