summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2013-01-08 16:01:52 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2013-04-09 09:42:23 +0200
commit662e469e91d85438444703aa60dc35ac27b06773 (patch)
tree8ecf007fd31887d845414c414bf1efe5bbaf4b75
parentf2d614c4beb6d1588e515dd64e7e44ba5510404e (diff)
downloadblackbird-op-linux-662e469e91d85438444703aa60dc35ac27b06773.tar.gz
blackbird-op-linux-662e469e91d85438444703aa60dc35ac27b06773.zip
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 <rogerq@ti.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
-rw-r--r--drivers/mfd/omap-usb-host.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
index 35a96e768db0..2520facd4ccc 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;
OpenPOWER on IntegriCloud