@@ -106,7 +106,7 @@ static void at91wdt_timer_tick(unsigned long data)
if (!watchdog_is_open(wddev))
driver_data->next_heartbeat = jiffies + heartbeat * HZ;
} else
- pr_crit("I will reset your machine !\n");
+ dev_crit(wddev->dev, "I will reset your machine !\n");
}
static int at91wdt_enable(struct watchdog_device *wddev, unsigned int timeout)
@@ -239,7 +239,7 @@ static int __init at91wdt_probe(struct platform_device *pdev)
(unsigned long)&at91_wddev);
mod_timer(&driver_data->timer, jiffies + WDT_TIMEOUT);
- pr_info("enabled (heartbeat=%d sec, nowayout=%d)\n",
+ dev_info(&pdev->dev, "enabled (heartbeat=%d sec, nowayout=%d)\n",
heartbeat, nowayout);
return 0;
Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com> --- drivers/watchdog/at91sam9_wdt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)