aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3beagle.c
diff options
context:
space:
mode:
authorBenoit Cousson <b-cousson@ti.com>2011-08-16 08:01:23 -0400
committerKevin Hilman <khilman@ti.com>2011-10-04 12:52:22 -0400
commitb1621fc80123e4f113c3dc1bc6dbad53ebd0c888 (patch)
treeaab2b79e84c1310777fabd4b91c10eed89a4c0c7 /arch/arm/mach-omap2/board-omap3beagle.c
parent1f8a7d5207a2a343af7c3b18fcc65dc6aa1fb068 (diff)
ARM: OMAP3: beagle-board: Use the omap_hwmod_name_get_dev API
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>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3beagle.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index e085371eb494..4a5d75f11610 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -486,8 +486,8 @@ static void __init beagle_opp_init(void)
486 if (cpu_is_omap3630()) { 486 if (cpu_is_omap3630()) {
487 struct device *mpu_dev, *iva_dev; 487 struct device *mpu_dev, *iva_dev;
488 488
489 mpu_dev = omap2_get_mpuss_device(); 489 mpu_dev = omap_device_get_by_hwmod_name("mpu");
490 iva_dev = omap2_get_iva_device(); 490 iva_dev = omap_device_get_by_hwmod_name("iva");
491 491
492 if (!mpu_dev || !iva_dev) { 492 if (!mpu_dev || !iva_dev) {
493 pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n", 493 pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n",