OMAP: omap_device: replace _find_by_pdev() with to_omap_device()
authorKevin Hilman <khilman@ti.com>
Sun, 10 Jul 2011 01:15:20 +0000 (19:15 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 01:15:20 +0000 (19:15 -0600)
commit8f0d69dedcf1d10f9f72845f17f9a09a6ef0d66c
tree20c5cc235b8101f0019fa1fa72507a161b947ba5
parentecba3287b4121dcf3ca7607fe71c205913edec06
OMAP: omap_device: replace _find_by_pdev() with to_omap_device()

The omap_device layer currently has two ways of getting an omap_device
pointer from a platform_device pointer.

Replace current usage of _find_by_pdev() with to_omap_device() since
to_omap_device() is more familiar to the existing to_platform_device()
used when getting a platform_device pointer from a struct device pointer.

Cc: Felipe Balbi <balbi@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/plat-omap/omap_device.c