diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-16 23:05:06 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-16 23:05:06 -0400 |
commit | 8e51036d348956a3cdb5a977234c395fdb82e170 (patch) | |
tree | 4069298c12089ae7702c6b14a3640dcc376f199c /drivers/watchdog | |
parent | a73403d85ab43ca633e393bb130add337d69fadb (diff) | |
parent | 68cb700c59fae6cd539c9dc1e9f2584f671935a0 (diff) |
Merge tag 'omap-cleanup-sparseirq-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup
From Tony Lindgren:
This branch contains changes needed to make omap2+
work properly with sparse IRQ. It also removes
dependencies to mach/hardware.h. These help moving
things towards ARM single zImage support.
This branch is based on a commit in tty-next
branch with omap-devel-gpmc-fixed-for-v3.7 and
cleanup-omap-tags-for-v3.7 merged in to keep things
compiling and sort out some merge conflicts.
* tag 'omap-cleanup-sparseirq-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap:
ARM: OMAP1: Move SoC specific headers from plat to mach for omap1
ARM: OMAP2+ Move SoC specific headers to be local to mach-omap2
ARM: OMAP: Split plat/hardware.h, use local soc.h for omap2+
ARM: OMAP: Remove unused old gpio-switch.h
ARM: OMAP1: Move plat/irqs.h to mach/irqs.h
ARM: OMAP2+: Remove hardcoded IRQs and enable SPARSE_IRQ
ARM: OMAP2+: Prepare for irqs.h removal
W1: OMAP HDQ1W: Remove dependencies to mach/hardware.h
Input: omap-keypad: Remove dependencies to mach includes
ARM: OMAP: Move gpio.h to include/linux/platform_data
ARM: OMAP2+: Remove hardcoded twl4030 gpio_base, irq_base and irq_end
ARM: OMAP2+: Remove unused nand_irq for GPMC
ARM: OMAP2+: Make INTCPS_NR_IRQS local for mach-omap2/irq.c
ARM: OMAP1: Define OMAP1_INT_I2C locally
ARM: OMAP1: Move define of OMAP_LCD_DMA to dma.h
Diffstat (limited to 'drivers/watchdog')
-rw-r--r-- | drivers/watchdog/omap_wdt.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/watchdog/omap_wdt.c b/drivers/watchdog/omap_wdt.c index fceec4f4eb7e..f5db18dbc0f9 100644 --- a/drivers/watchdog/omap_wdt.c +++ b/drivers/watchdog/omap_wdt.c | |||
@@ -46,6 +46,7 @@ | |||
46 | #include <linux/slab.h> | 46 | #include <linux/slab.h> |
47 | #include <linux/pm_runtime.h> | 47 | #include <linux/pm_runtime.h> |
48 | #include <mach/hardware.h> | 48 | #include <mach/hardware.h> |
49 | #include <plat/cpu.h> | ||
49 | #include <plat/prcm.h> | 50 | #include <plat/prcm.h> |
50 | 51 | ||
51 | #include "omap_wdt.h" | 52 | #include "omap_wdt.h" |
@@ -218,12 +219,16 @@ static long omap_wdt_ioctl(struct file *file, unsigned int cmd, | |||
218 | case WDIOC_GETSTATUS: | 219 | case WDIOC_GETSTATUS: |
219 | return put_user(0, (int __user *)arg); | 220 | return put_user(0, (int __user *)arg); |
220 | case WDIOC_GETBOOTSTATUS: | 221 | case WDIOC_GETBOOTSTATUS: |
222 | #ifdef CONFIG_ARCH_OMAP1 | ||
221 | if (cpu_is_omap16xx()) | 223 | if (cpu_is_omap16xx()) |
222 | return put_user(__raw_readw(ARM_SYSST), | 224 | return put_user(__raw_readw(ARM_SYSST), |
223 | (int __user *)arg); | 225 | (int __user *)arg); |
226 | #endif | ||
227 | #ifdef CONFIG_ARCH_OMAP2PLUS | ||
224 | if (cpu_is_omap24xx()) | 228 | if (cpu_is_omap24xx()) |
225 | return put_user(omap_prcm_get_reset_sources(), | 229 | return put_user(omap_prcm_get_reset_sources(), |
226 | (int __user *)arg); | 230 | (int __user *)arg); |
231 | #endif | ||
227 | return put_user(0, (int __user *)arg); | 232 | return put_user(0, (int __user *)arg); |
228 | case WDIOC_KEEPALIVE: | 233 | case WDIOC_KEEPALIVE: |
229 | spin_lock(&wdt_lock); | 234 | spin_lock(&wdt_lock); |