diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:51:04 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:51:04 +0000 |
commit | acd8ad4de57365ea0942187251c7d17b709b56c3 (patch) | |
tree | aaad5b201a26e205f0a51cbc55b3d22590880565 /target/linux/ar71xx/files/drivers/watchdog | |
parent | eef802855a04348949af7fd748eab1ad5facb7a2 (diff) | |
download | mtk-20170518-acd8ad4de57365ea0942187251c7d17b709b56c3.zip mtk-20170518-acd8ad4de57365ea0942187251c7d17b709b56c3.tar.gz mtk-20170518-acd8ad4de57365ea0942187251c7d17b709b56c3.tar.bz2 |
ar71xx: wrap long lines
(build errors has been fixed - juhosg)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
SVN-Revision: 23977
Diffstat (limited to 'target/linux/ar71xx/files/drivers/watchdog')
-rw-r--r-- | target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c index 6b5ff21..b8b2b03 100644 --- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c +++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c @@ -215,9 +215,8 @@ static int __devinit ar71xx_wdt_probe(struct platform_device *pdev) max_timeout = (0xfffffffful / ar71xx_ahb_freq); wdt_timeout = (max_timeout < WDT_TIMEOUT) ? max_timeout : WDT_TIMEOUT; - boot_status = - (ar71xx_reset_rr(AR71XX_RESET_REG_WDOG_CTRL) & WDOG_CTRL_LAST_RESET) ? - WDIOF_CARDRESET : 0; + if (ar71xx_reset_rr(AR71XX_RESET_REG_WDOG_CTRL) & WDOG_CTRL_LAST_RESET) + boot_status = WDIOF_CARDRESET; ret = misc_register(&ar71xx_wdt_miscdev); if (ret) |