[PATCH] OMAP: omap_device: replace _find_by_pdev() with to_omap_device()

Paul Walmsley paul at pwsan.com
Sat Jul 9 18:40:18 EDT 2011


On Wed, 6 Jul 2011, Kevin Hilman wrote:

> 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 at ti.com>
> Signed-off-by: Kevin Hilman <khilman at ti.com>
> ---
> Paul, please consider this minor cleanup for the v3.1 merge window.
> Applies to v3.0-c6.
> 
>  arch/arm/plat-omap/omap_device.c |   15 +++++----------
>  1 files changed, 5 insertions(+), 10 deletions(-)

Thanks, queued for 3.1 with Felipe's Reviewed-by at 
git://git.pwsan.com/linux-2.6 in 'omap_device_cleanup_3.1'.


- Paul



More information about the linux-arm-kernel mailing list