linux-mips
[Top] [All Lists]

[PATCH 1/3] 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>
Subject: [PATCH 1/3] WATCHDOG: mtx1-wdt: use dev_{err,info} instead of printk()
From: Florian Fainelli <florian@openwrt.org>
Date: Thu, 2 Jun 2011 14:54:17 +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=aWDeU6QVXXBoo3NpNDwImSlZesuFNDZf07bkip1VCRw=; b=PV5Sfp1t21vKYwaBc6aS8WciXxfOX8SAJmXOrA9hobv/zd65VTRdoskdTlR2Hoon/u WoduPkEo8E8RSrgIqHaYThtCbJ1pMQBEFISNsFc7IpIdR75Hozq/0lIYvX0kU99yZB3q nfE1u2qJ1/7sqVUyGoq24cu374dngSZaurrq0=
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=HyK42AboX67rJftSLlU7vWJr9atAPg2EnzuJGVB0WzJu6CKZoHGPcSdlEzIK6MGFtf NTfV++EQSigHBPJ71Y0OLpGHAN7xPpM13Mzlt8XKOy5E0Xus87UQ4TVsO0YUr15C2mZr G99FCQjzDoKTy/chKPV8P3ZCTRNPSItrSY4dM=
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>
---
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>