ARM: OMAP2+: WDT: move init; add read_reset_sources pdata function pointer
authorPaul Walmsley <paul@pwsan.com>
Tue, 30 Oct 2012 02:49:44 +0000 (20:49 -0600)
committerPaul Walmsley <paul@pwsan.com>
Tue, 30 Oct 2012 02:49:44 +0000 (20:49 -0600)
commit37c67d03989eca60b28d67398d9388f653454c5d
treecd23dc86d705b85aad3983122b32b78d0b01b3cd
parent508c0d47736023fdcb491fd55ad64f7e08f6f32f
ARM: OMAP2+: WDT: move init; add read_reset_sources pdata function pointer

The OMAP watchdog timer driver directly calls a function exported by
code in arch/arm/mach-omap2.  This is not good; it tightly couples
this driver to the mach-omap2 integration code.  Instead, add a
temporary platform_data function pointer to abstract this function
call.  A subsequent patch will convert the watchdog driver to use this
function pointer.

This patch also moves the device creation code out of
arch/arm/mach-omap2/devices.c and into arch/arm/mach-omap2/wd_timer.c.
This is another step towards the removal of
arch/arm/mach-omap2/devices.c.

Cc: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Wim Van Sebroeck <wim@iguana.be>
[paul@pwsan.com: skip wd_timer device creation when DT blob is present]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap1/devices.c
arch/arm/mach-omap2/devices.c
arch/arm/mach-omap2/wd_timer.c
include/linux/platform_data/omap-wd-timer.h [new file with mode: 0644]