diff mbox

[v3,1/4] OMAP2+: PM: omap device: API's for handling mstandby mode

Message ID 20110324175324.GA1738@manju-desktop (mailing list archive)
State New, archived
Headers show

Commit Message

manjugk manjugk March 24, 2011, 5:53 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c
index b502098..257c835 100644
--- a/arch/arm/plat-omap/omap_device.c
+++ b/arch/arm/plat-omap/omap_device.c
@@ -651,9 +651,8 @@  int omap_device_require_no_mstandby(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
-	oh = *od->hwmods;
 	for (i = 0; i < od->hwmods_cnt; i++)
-		ret = omap_hwmod_set_master_standbymode(oh, true);
+		ret = omap_hwmod_set_master_standbymode(od->hwmods[i], true);
 
 	return ret;
 }
@@ -684,9 +683,8 @@  int omap_device_release_no_mstandby(struct platform_device *pdev)
 		return -EINVAL;
 	}
 
-	oh = *od->hwmods;
 	for (i = 0; i < od->hwmods_cnt; i++)
-		ret = omap_hwmod_set_master_standbymode(oh, false);
+		ret = omap_hwmod_set_master_standbymode(od->hwmods[i], false);
 
 	return ret;
 }