]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: AR7: register watchdog device only if enabled in hw configuration
authorFlorian Fainelli <florian@openwrt.org>
Tue, 4 Aug 2009 21:09:36 +0000 (23:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 2 Nov 2009 11:00:03 +0000 (12:00 +0100)
commit3e264e98efa44f39c7137cb649136aa16571a286
tree36f416b9a26fab0a07a2d08958f2a398a9e1472b
parent2aaec322e697282b650f00512f602c74411a9206
MIPS: AR7: register watchdog device only if enabled in hw configuration

This patch checks if the watchdog enable bit is set in the DCL register
meaning that the hardware watchdog actually works and if so, register the
ar7_wdt platform_device.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/platform.c
arch/mips/include/asm/mach-ar7/ar7.h