aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/omap_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/plat-omap/include/plat/omap_device.h')
-rw-r--r--arch/arm/plat-omap/include/plat/omap_device.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/include/plat/omap_device.h b/arch/arm/plat-omap/include/plat/omap_device.h
index 750f401051d1..4f98770b1d8c 100644
--- a/arch/arm/plat-omap/include/plat/omap_device.h
+++ b/arch/arm/plat-omap/include/plat/omap_device.h
@@ -116,11 +116,6 @@ int omap_device_enable_hwmods(struct omap_device *od);
116int omap_device_disable_clocks(struct omap_device *od); 116int omap_device_disable_clocks(struct omap_device *od);
117int omap_device_enable_clocks(struct omap_device *od); 117int omap_device_enable_clocks(struct omap_device *od);
118 118
119static inline void omap_device_disable_idle_on_suspend(struct omap_device *od)
120{
121 od->flags |= OMAP_DEVICE_NO_IDLE_ON_SUSPEND;
122}
123
124/* 119/*
125 * Entries should be kept in latency order ascending 120 * Entries should be kept in latency order ascending
126 * 121 *
@@ -153,4 +148,12 @@ struct omap_device_pm_latency {
153/* Get omap_device pointer from platform_device pointer */ 148/* Get omap_device pointer from platform_device pointer */
154#define to_omap_device(x) container_of((x), struct omap_device, pdev) 149#define to_omap_device(x) container_of((x), struct omap_device, pdev)
155 150
151static inline
152void omap_device_disable_idle_on_suspend(struct platform_device *pdev)
153{
154 struct omap_device *od = to_omap_device(pdev);
155
156 od->flags |= OMAP_DEVICE_NO_IDLE_ON_SUSPEND;
157}
158
156#endif 159#endif