Skip to contentSkip to conversation

WATCHDOG: mtx1-wdt: use dev_{err,info} instead of printk()

PATCH Superseded Florian Fainelli 2 participants 2 messages Jun 2, 2011

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 WATCHDOG: mtx1-wdt: use dev_{err,info} instead of printk()

---

drivers/watchdog/mtx-1_wdt.c +2 -2
index 1479dc4..63df28c 100644
@@ -224,11 +224,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;
 }
 
Signature · 1 line
1.7.4.1
#1 lore raw

Hi Florian,

drivers/watchdog/mtx-1_wdt.c

Quoted 4 lines · Florian Fainelli

---

drivers/watchdog/mtx-1_wdt.c +0 -0

While you're at it, please change line 246 from

static struct platform_driver mtx1_wdt = {
to
static struct platform_driver mtx1_wdt_driver = {

to get rid of a really annoying section mismatch warning.

Thanks!
Manuel Lauss