Skip to content

Commit

Permalink
mfd: omap-usb-host: Update nports in platform_data
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roger Quadros authored and Samuel Ortiz committed Apr 9, 2013
1 parent f2d614c commit 662e469
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/omap-usb-host.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 662e469

Please sign in to comment.