linux-mips
[Top] [All Lists]

[PATCH 1/5 v2] WATCHDOG: mtx1-wdt: use dev_{err,info} instead of printk(

To: Wim Van Sebroeck <wim@iguana.be>, linux-mips@linux-mips.org, linux-watchdog@vger.kernel.org, Manuel Lauss <manuel.lauss@googlemail.com>, Jamie Iles <jamie@jamieiles.com>
Subject: [PATCH 1/5 v2] WATCHDOG: mtx1-wdt: use dev_{err,info} instead of printk()
From: Florian Fainelli <florian@openwrt.org>
Date: Sun, 12 Jun 2011 18:56:10 +0200
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:subject:date:user-agent :organization:mime-version:content-type:content-transfer-encoding :message-id; bh=Keq3zFs/ceudYueQ8OtRMeF30h9+ZPZTe0+bL+Anbao=; b=DLIv3qMxuuL2j4/dbaObKtsZ/9VIZdTwP7RcggUNDFRBGtePCLDJlgtJSdbkN7NiW+ EvVIj532emeQUSS/XHBrg0JlqypYGeHGn9EvzvEeU1wwS79es6yl9bj+l9GCCGIpRRqS y+0MRCOc1F2RTIAsBVfAH3WSW9DZ6atg1Dcns=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:date:user-agent:organization:mime-version :content-type:content-transfer-encoding:message-id; b=UVeAandO9tJLa4iKCMJKC7/4gUYp6rsFw7N9p0ngQaONNPAHMpFWwwz60q7cFHP1Fu QvUpW59oqz59AzvrgtEzHYnXDvvBy/MCyWIOv9TA+GpM3wSWh7K2LAWDmH9eSyWvntHb lC62v0njqE2c0y2QghJJcaGYCCwTpneHsGh6I=
Organization: OpenWrt
Sender: linux-mips-bounce@linux-mips.org
User-agent: KMail/1.13.6 (Linux/2.6.38-9-generic; KDE/4.6.2; x86_64; ; )
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
No changes since v1

diff --git a/drivers/watchdog/mtx-1_wdt.c b/drivers/watchdog/mtx-1_wdt.c
index 1479dc4..63df28c 100644
--- a/drivers/watchdog/mtx-1_wdt.c
+++ b/drivers/watchdog/mtx-1_wdt.c
@@ -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;
 }
 
-- 
1.7.4.1


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH 1/5 v2] WATCHDOG: mtx1-wdt: use dev_{err,info} instead of printk(), Florian Fainelli <=