From patchwork Thu Dec 19 05:12:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 303166 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id CBB512C0090 for ; Thu, 19 Dec 2013 16:12:14 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751090Ab3LSFMI (ORCPT ); Thu, 19 Dec 2013 00:12:08 -0500 Received: from mailout3.samsung.com ([203.254.224.33]:25102 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750828Ab3LSFMG (ORCPT ); Thu, 19 Dec 2013 00:12:06 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout3.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MY100HSXFS5VJ50@mailout3.samsung.com> for linux-pwm@vger.kernel.org; Thu, 19 Dec 2013 14:12:05 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.49]) by epcpsbgr4.samsung.com (EPCPMTA) with SMTP id F0.56.02798.52082B25; Thu, 19 Dec 2013 14:12:05 +0900 (KST) X-AuditID: cbfee690-b7f206d000000aee-eb-52b280250d43 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id D6.04.22838.52082B25; Thu, 19 Dec 2013 14:12:05 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MY100CQOFS5JB00@mmp1.samsung.com>; Thu, 19 Dec 2013 14:12:05 +0900 (KST) From: Jingoo Han To: 'Thierry Reding' Cc: linux-pwm@vger.kernel.org, 'Jingoo Han' , 'Philip Avinash' Subject: [PATCH] pwm: tiehrpwm: use dev_err() instead of pr_err() Date: Thu, 19 Dec 2013 14:12:05 +0900 Message-id: <000101cefc78$dbab1320$93013960$%han@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac78eNfTe+WrI5OYQVegjUuDBNL5Kg== Content-language: ko x-cr-hashedpuzzle: CORh DgSn KVu1 MHTr MjMu Q4Vq TFxh T0w4 U+BI VNur a2JT bIJm dtbx f5As iE8W oH2Z; 4; YQB2AGkAbgBhAHMAaABwAGgAaQBsAGkAcABAAHQAaQAuAGMAbwBtADsAagBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA7AGwAaQBuAHUAeAAtAHAAdwBtAEAAdgBnAGUAcgAuAGsAZQByAG4AZQBsAC4AbwByAGcAOwB0AGgAaQBlAHIAcgB5AC4AcgBlAGQAaQBuAGcAQABnAG0AYQBpAGwALgBjAG8AbQA=; Sosha1_v1; 7; {742FABE2-9F62-46E6-BC89-F23BC5B03B04}; agBnADEALgBoAGEAbgBAAHMAYQBtAHMAdQBuAGcALgBjAG8AbQA=; Thu, 19 Dec 2013 05:11:58 GMT; WwBQAEEAVABDAEgAXQAgAHAAdwBtADoAIAB0AGkAZQBoAHIAcAB3AG0AOgAgAHUAcwBlACAAZABlAHYAXwBlAHIAcgAoACkAIABpAG4AcwB0AGUAYQBkACAAbwBmACAAcAByAF8AZQByAHIAKAApAA== x-cr-puzzleid: {742FABE2-9F62-46E6-BC89-F23BC5B03B04} X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrLIsWRmVeSWpSXmKPExsVy+t8zQ13Vhk1BBh9eSVs8urOfyeLywkus FnfvrmK0+LlrHosDi8fOWXfZPfq2rGL0OH5jO5PH501yASxRXDYpqTmZZalF+nYJXBnbTix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AmELSvyYfI8FoldLYv3O40wQtrzE5jVvmbsY OYAuUpd49FcXYpWexKsvx6DKRST2vXjHCHF0A6vEg9ZgCNtU4trN24wTGIVmIdkwC8mGWUg2 zEIyagEjyypG0dSC5ILipPRcQ73ixNzi0rx0veT83E2M4Kh/JrWDcWWDxSFGAQ5GJR7eFS83 BgmxJpYVV+YeYpTgYFYS4b3CsilIiDclsbIqtSg/vqg0J7X4EGMyMAAmMkuJJucDE1JeSbyh sYmZkaWRmYWRibk5acJK4rwHWq0DhQTSE0tSs1NTC1KLYLYwcXBKNTAuWbdnSRXDlAZj9y8B rGzhnwOXcYa5Tt8udG31VrEcwec+ruf9C4KjgvY6L7l3cX/4w85tfw44XX9/UPxs5r3jwelr 58Y+fPfu3sL4LUki9qcXv1tdeljUNPyNQYa3zJ/3ST7vOlN7L2/zUlFjnVWU+Pj42aDdPq07 tYp1M90+h8vpfL/e88dbiaU4I9FQi7moOBEAUfgqjT4DAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pwm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pwm@vger.kernel.org Use dev_err() instead of pr_err() to provide a better message to userspace. Signed-off-by: Jingoo Han --- drivers/pwm/pwm-tiehrpwm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/pwm-tiehrpwm.c b/drivers/pwm/pwm-tiehrpwm.c index a4d8f51..aee4471 100644 --- a/drivers/pwm/pwm-tiehrpwm.c +++ b/drivers/pwm/pwm-tiehrpwm.c @@ -360,8 +360,8 @@ static int ehrpwm_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm) /* Enable TBCLK before enabling PWM device */ ret = clk_enable(pc->tbclk); if (ret) { - pr_err("Failed to enable TBCLK for %s\n", - dev_name(pc->chip.dev)); + dev_err(chip->dev, "Failed to enable TBCLK for %s\n", + dev_name(pc->chip.dev)); return ret; }