diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-omap2/gpio.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 2 | ||||
-rw-r--r-- | arch/arm/plat-omap/include/plat/omap_device.h | 13 |
3 files changed, 10 insertions, 7 deletions
diff --git a/arch/arm/mach-omap2/gpio.c b/arch/arm/mach-omap2/gpio.c index 76abdcb6e0b0..652ccc574196 100644 --- a/arch/arm/mach-omap2/gpio.c +++ b/arch/arm/mach-omap2/gpio.c | |||
@@ -119,7 +119,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused) | |||
119 | return PTR_ERR(pdev); | 119 | return PTR_ERR(pdev); |
120 | } | 120 | } |
121 | 121 | ||
122 | omap_device_disable_idle_on_suspend(od); | 122 | omap_device_disable_idle_on_suspend(pdev); |
123 | 123 | ||
124 | gpio_bank_count++; | 124 | gpio_bank_count++; |
125 | return 0; | 125 | return 0; |
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 53b680878138..3d1c1d393f8f 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c | |||
@@ -805,7 +805,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata) | |||
805 | WARN(IS_ERR(pdev), "Could not build omap_device for %s: %s.\n", | 805 | WARN(IS_ERR(pdev), "Could not build omap_device for %s: %s.\n", |
806 | name, oh->name); | 806 | name, oh->name); |
807 | 807 | ||
808 | omap_device_disable_idle_on_suspend(od); | 808 | omap_device_disable_idle_on_suspend(pdev); |
809 | oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt); | 809 | oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt); |
810 | 810 | ||
811 | uart->irq = oh->mpu_irqs[0].irq; | 811 | uart->irq = oh->mpu_irqs[0].irq; |
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); | |||
116 | int omap_device_disable_clocks(struct omap_device *od); | 116 | int omap_device_disable_clocks(struct omap_device *od); |
117 | int omap_device_enable_clocks(struct omap_device *od); | 117 | int omap_device_enable_clocks(struct omap_device *od); |
118 | 118 | ||
119 | static 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 | ||
151 | static inline | ||
152 | void 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 |