watchdog: ath79_wdt: get register base from platform device's resources
authorGabor Juhos <juhosg@openwrt.org>
Thu, 27 Dec 2012 14:38:26 +0000 (15:38 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 1 Mar 2013 11:22:38 +0000 (12:22 +0100)
commit09f5100a592d11dad06b218f41d560ff1f87f666
tree61dc65a90c6344b8273f8d383f3ad34d3054e2f3
parent0f2ad9ed7c6fecb008372e8a709595a2a21059aa
watchdog: ath79_wdt: get register base from platform device's resources

The ath79_wdt driver uses a fixed memory address
currently. Although this is working with each
currently supported SoCs, but this may change
in the future. Additionally, the driver includes
platform specific header files in order to be
able to get the memory base of the watchdog
device.

The patch adds a memory resource to the platform
device, and converts the driver to get the base
address of the watchdog device from that.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
arch/mips/ath79/dev-common.c
drivers/watchdog/ath79_wdt.c