X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/2adda3cec6b01b487d89bb5a5473d4d67622c7f4..9a4c96e6e928efff071679e07963fdfeaee93d71:/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c diff --git a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c index b8b2b03c0..abe157cb0 100644 --- a/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c +++ b/target/linux/ar71xx/files/drivers/watchdog/ar71xx_wdt.c @@ -54,19 +54,19 @@ static int wdt_timeout = WDT_TIMEOUT; static int boot_status; static int max_timeout; -static void inline ar71xx_wdt_keepalive(void) +static inline void ar71xx_wdt_keepalive(void) { ar71xx_reset_wr(AR71XX_RESET_REG_WDOG, ar71xx_ahb_freq * wdt_timeout); } -static void inline ar71xx_wdt_enable(void) +static inline void ar71xx_wdt_enable(void) { printk(KERN_DEBUG DRV_NAME ": enabling watchdog timer\n"); ar71xx_wdt_keepalive(); ar71xx_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_FCR); } -static void inline ar71xx_wdt_disable(void) +static inline void ar71xx_wdt_disable(void) { printk(KERN_DEBUG DRV_NAME ": disabling watchdog timer\n"); ar71xx_reset_wr(AR71XX_RESET_REG_WDOG_CTRL, WDOG_CTRL_ACTION_NONE); @@ -156,7 +156,7 @@ static long ar71xx_wdt_ioctl(struct file *file, case WDIOC_GETSUPPORT: ret = copy_to_user((struct watchdog_info *)arg, &ar71xx_wdt_info, - sizeof(&ar71xx_wdt_info)) ? -EFAULT : 0; + sizeof(ar71xx_wdt_info)) ? -EFAULT : 0; break; case WDIOC_GETSTATUS: