ARM: OMAP3: beagle-board: Use the omap_hwmod_name_get_dev API
authorBenoit Cousson <b-cousson@ti.com>
Tue, 16 Aug 2011 12:01:23 +0000 (14:01 +0200)
committerKevin Hilman <khilman@ti.com>
Tue, 4 Oct 2011 16:52:22 +0000 (09:52 -0700)
Replace the multiple omap2_get_XXX_device APIs with the new
omap_hwmod_name_get_dev that uses the hwmod name to get the proper
device.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/board-omap3beagle.c

index e085371eb4949aadaa8a3be65cda39ecefb45d09..4a5d75f11610750f39662697ace8b2a34a8ea67b 100644 (file)
@@ -486,8 +486,8 @@ static void __init beagle_opp_init(void)
        if (cpu_is_omap3630()) {
                struct device *mpu_dev, *iva_dev;
 
-               mpu_dev = omap2_get_mpuss_device();
-               iva_dev = omap2_get_iva_device();
+               mpu_dev = omap_device_get_by_hwmod_name("mpu");
+               iva_dev = omap_device_get_by_hwmod_name("iva");
 
                if (!mpu_dev || !iva_dev) {
                        pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n",