aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/plat-omap/include/plat/omap_device.h
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-08-01 12:33:13 -0400
committerKevin Hilman <khilman@ti.com>2011-09-15 19:35:47 -0400
commit9f8b6949d78f1306eef0edc14bc1fbcaf3e58ad0 (patch)
tree25d24e2eeb52bfa1116322d681fd54a08d18f6c0 /arch/arm/plat-omap/include/plat/omap_device.h
parentbfae4f8ffa8249c7cdd1483320cf1adc0ec954ff (diff)
OMAP: omap_device: _disable_idle_on_suspend() takes platform_device pointer
Public omap_device functions need to take platform_device pointers, conversion to omap_device pointers is done internal to the omap_device layer. Signed-off-by: Kevin Hilman <khilman@ti.com>
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