From patchwork Fri Jul 6 09:13:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 9882 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 76E1C23E4F for ; Fri, 6 Jul 2012 09:26:17 +0000 (UTC) Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com [209.85.213.52]) by fiordland.canonical.com (Postfix) with ESMTP id 3E68DA18667 for ; Fri, 6 Jul 2012 09:26:17 +0000 (UTC) Received: by yhpp61 with SMTP id p61so9851063yhp.11 for ; Fri, 06 Jul 2012 02:26:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=3O6cLROVL4/Ow3W9K7HE4sz9Tk0P5e+yLmUuh9njwHU=; b=bUDCboxP4GlVh04tlzNAziF2omm6TqDc0KK3Yl12OrhfC/mc60d2n5tFna0MZlekW3 v+0cckxw47jBm3ikfUFuVZWN5+vBsp4g3UT9UGo4FroRpIJG8rpGWXDjaDAFK0Lay1yO 9H4kkoGnF1teFR/7eOx6rzbFgxrZHlMMXj/JIUZIV6xdXeaMXSGJKIl2Kv50ZWQsLbZC KzQIXmzzFZEueCnKbfXpvvYi6lMiD3vMTcHf/OaKNhWksVHyyTfod58kzJjAikjNeMmL hAWJqXmBHeo0006H78C1ejuUE6ldqxnEw0X/n5djT9dS8WQwagZ3Yr++n7om812bHNs9 pHMg== Received: by 10.50.195.234 with SMTP id ih10mr2083616igc.0.1341566776553; Fri, 06 Jul 2012 02:26:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp6805ibb; Fri, 6 Jul 2012 02:26:15 -0700 (PDT) Received: by 10.68.200.138 with SMTP id js10mr36129365pbc.23.1341566775459; Fri, 06 Jul 2012 02:26:15 -0700 (PDT) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id pw9si42302517pbb.77.2012.07.06.02.26.15 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jul 2012 02:26:15 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pb0-f50.google.com with SMTP id rr4so16842846pbb.37 for ; Fri, 06 Jul 2012 02:26:15 -0700 (PDT) Received: by 10.68.204.129 with SMTP id ky1mr36183061pbc.32.1341566775170; Fri, 06 Jul 2012 02:26:15 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id oo6sm21553340pbc.22.2012.07.06.02.26.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jul 2012 02:26:14 -0700 (PDT) From: Sachin Kamat To: linux-kernel@vger.kernel.org Cc: thierry.reding@avionic-design.de, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] pwm: Use pr_* functions in pwm-samsung.c file Date: Fri, 6 Jul 2012 14:43:50 +0530 Message-Id: <1341566030-3902-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmOZ3wln5cMhBNB+Ff49YtcKLgKLgnxSvaNb97JrF/K0AQPs53LSqJVWnaN7C2hPR8kUrGh Replace printk with pr_* functions to avoid checkpatch warnings. Signed-off-by: Sachin Kamat --- drivers/pwm/pwm-samsung.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-samsung.c b/drivers/pwm/pwm-samsung.c index 35fa0e8..d103865 100644 --- a/drivers/pwm/pwm-samsung.c +++ b/drivers/pwm/pwm-samsung.c @@ -11,6 +11,8 @@ * the Free Software Foundation; either version 2 of the License. */ +#define pr_fmt(fmt) "pwm-samsung: " fmt + #include #include #include @@ -340,13 +342,13 @@ static int __init pwm_init(void) clk_scaler[1] = clk_get(NULL, "pwm-scaler1"); if (IS_ERR(clk_scaler[0]) || IS_ERR(clk_scaler[1])) { - printk(KERN_ERR "%s: failed to get scaler clocks\n", __func__); + pr_err("failed to get scaler clocks\n"); return -EINVAL; } ret = platform_driver_register(&s3c_pwm_driver); if (ret) - printk(KERN_ERR "%s: failed to add pwm driver\n", __func__); + pr_err("failed to add pwm driver\n"); return ret; }