Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1621fc8 authored by Benoit Cousson's avatar Benoit Cousson Committed by Kevin Hilman
Browse files

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: default avatarBenoit Cousson <b-cousson@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 1f8a7d52
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -486,8 +486,8 @@ static void __init beagle_opp_init(void)
	if (cpu_is_omap3630()) {
	if (cpu_is_omap3630()) {
		struct device *mpu_dev, *iva_dev;
		struct device *mpu_dev, *iva_dev;


		mpu_dev = omap2_get_mpuss_device();
		mpu_dev = omap_device_get_by_hwmod_name("mpu");
		iva_dev = omap2_get_iva_device();
		iva_dev = omap_device_get_by_hwmod_name("iva");


		if (!mpu_dev || !iva_dev) {
		if (!mpu_dev || !iva_dev) {
			pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n",
			pr_err("%s: Aiee.. no mpu/dsp devices? %p %p\n",