Paul Walmsley d3645d39ad ARM: OMAP1: OHCI: use platform_data fn ptr to enable OCPI bus
The OMAP1 OHCI driver needs to enable the OCPI IP block before it can
work.  Previously, the driver was simply calling a symbol defined in
the OMAP platform code, but this is incorrect: drivers should be fully
decoupled from platform and architecture code.

So instead, modify the driver to call through a platform_data function
pointer instead.  We skip any DT aspect, since OMAP1 is not scheduled
to be converted to DT in the near future.

This resolves the following sparse warning:

It also gets rid of a cpu_is_omap16xx() call in a driver.

In the long term, it probably makes sense to move the OCPI bus code to
somewhere under drivers/.  This should avoid the whole platform_data/DT
issue with this function.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Felipe Balbi <balbi@ti.com>
Cc: Anand Gadiyar <gadiyar@ti.com>
Acked-by: Felipe Balbi <balbi@ti.com>
2012-04-13 06:34:27 -06:00
..
2012-03-27 16:27:28 -07:00
2012-03-27 16:03:32 -07:00
2012-03-27 16:03:32 -07:00
2012-03-27 16:03:32 -07:00
2012-04-13 06:34:27 -06:00
2012-03-27 16:03:32 -07:00
2012-03-30 17:31:56 -07:00
2012-03-13 21:22:09 -05:00
2012-03-27 16:27:28 -07:00
2012-03-27 16:03:32 -07:00
2012-03-28 18:30:01 +01:00
2012-04-13 06:34:27 -06:00
2012-03-27 16:03:32 -07:00
2012-03-28 18:30:01 +01:00
2012-04-13 06:34:27 -06:00
2012-03-29 10:05:02 -07:00
2012-03-28 15:58:21 -07:00