OMAP: WDT: Split OMAP1 and OMAP2PLUS device registration
authorVaradarajan, Charulatha <charu@ti.com>
Thu, 23 Sep 2010 14:32:42 +0000 (20:02 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Wed, 29 Sep 2010 19:21:57 +0000 (12:21 -0700)
commitf2ce62312650211f6cf665cd6dc519c334c4071e
tree37c52a98bf3e19f6658d4ce4fbfaf6fce0cfc85c
parent92b18d1cf1335a468d4014c4fdb1eb720e77526f
OMAP: WDT: Split OMAP1 and OMAP2PLUS device registration

This patch splits omap_init_wdt() into separate omap_init_wdt()
functions under mach-omap1 and mach-omap2 and set them up with
subsys_initcall.

Also it uses  omap_device_build() API instead of
platform_device_register() for watchdog timer device registration
for OMAP2plus chips.

For OMAP2plus chips, the device specific data defined in centralized
hwmod database will be used.

Signed-off-by: Charulatha V <charu@ti.com>
Acked-by: Cousson, Benoit <b-cousson@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap1/devices.c
arch/arm/mach-omap2/devices.c
arch/arm/plat-omap/devices.c