From: Florian Fainelli Date: Wed, 15 Jun 2011 17:15:09 +0000 (+0200) Subject: watchdog: mtx1-wdt: use dev_{err,info} instead of printk() X-Git-Tag: MMI-PSA29.97-13-9~18740^2~19 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fad0a9dd0da2dc9971e0e71f41134c791f2030c2;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git watchdog: mtx1-wdt: use dev_{err,info} instead of printk() use dev_{err,info} instead of printk(KERN_{ERR,INFO} ...) Signed-off-by: Florian Fainelli Signed-off-by: Wim Van Sebroeck --- diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c index 0430e093b1a0..ac37bb82392c 100644 --- a/drivers/watchdog/mtx-1_wdt.c +++ b/drivers/watchdog/mtx-1_wdt.c @@ -225,11 +225,11 @@ static int __devinit mtx1_wdt_probe(struct platform_device *pdev) ret = misc_register(&mtx1_wdt_misc); if (ret < 0) { - printk(KERN_ERR " mtx-1_wdt : failed to register\n"); + dev_err(&pdev->dev, "failed to register\n"); return ret; } mtx1_wdt_start(); - printk(KERN_INFO "MTX-1 Watchdog driver\n"); + dev_info(&pdev->dev, "MTX-1 Watchdog driver\n"); return 0; }