]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Wed, 30 Jan 2013 19:50:42 +0000 (20:50 +0100)
commitc9289c067a28a13e6367164ce749bfa81ea47065
tree9305b665eab23ea57a9604ad821314ead28c89d4
parent4aab051f141cbd889c0707513f082b6c255437b2
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