aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-12-04 16:55:43 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-12-04 16:55:43 +0000
commitab09799f09ea2c72bc8b6e356a8e1b8e48faa9b4 (patch)
tree8ac4891e63aeb16ec5cfb3d41f4b72ca4a144162 /target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
parent4c3e9eeaba289acdde7c276c79a3de5e48056812 (diff)
downloadupstream-ab09799f09ea2c72bc8b6e356a8e1b8e48faa9b4.tar.gz
upstream-ab09799f09ea2c72bc8b6e356a8e1b8e48faa9b4.tar.bz2
upstream-ab09799f09ea2c72bc8b6e356a8e1b8e48faa9b4.zip
[ar71xx] rename reset register definitions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@13516 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c')
-rw-r--r--target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
index 9f14ff7561..b5bc254f8b 100644
--- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
+++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c
@@ -56,20 +56,20 @@ static int max_timeout;
static void inline ar71xx_wdt_keepalive(void)
{
- ar71xx_reset_wr(RESET_REG_WDOG, ar71xx_ahb_freq * wdt_timeout);
+ ar71xx_reset_wr(AR71XX_RESET_REG_WDOG, ar71xx_ahb_freq * wdt_timeout);
}
static void inline ar71xx_wdt_enable(void)
{
printk(KERN_DEBUG DRV_NAME ": enabling watchdog timer\n");
ar71xx_wdt_keepalive();
- ar71xx_reset_wr(RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_FCR);
+ ar71xx_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_FCR);
}
static void inline ar71xx_wdt_disable(void)
{
printk(KERN_DEBUG DRV_NAME ": disabling watchdog timer\n");
- ar71xx_reset_wr(RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_NONE);
+ ar71xx_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_NONE);
}
static int ar71xx_wdt_set_timeout(int val)
@@ -216,7 +216,7 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev)
wdt_timeout = (max_timeout < WDT_TIMEOUT) ? max_timeout : WDT_TIMEOUT;
boot_status =
- (ar71xx_reset_rr(RESET_REG_WDOG_CTRL) & WDOG_CTRL_LAST_RESET) ?
+ (ar71xx_reset_rr(AR71XX_RESET_REG_WDOG_CTRL) & WDOG_CTRL_LAST_RESET) ?
WDIOF_CARDRESET : 0;
ret = misc_register(&ar71xx_wdt_miscdev);