From patchwork Mon Oct 21 01:52:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 3074191 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C6F23BF924 for ; Mon, 21 Oct 2013 01:53:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0479920430 for ; Mon, 21 Oct 2013 01:53:13 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 08B9420364 for ; Mon, 21 Oct 2013 01:53:12 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VY4fy-0006Gs-25; Mon, 21 Oct 2013 01:52:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VY4fv-0008Bf-KA; Mon, 21 Oct 2013 01:52:55 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VY4fr-0008Ah-3j for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2013 01:52:52 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MUZ00IJPX6PEL70@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Mon, 21 Oct 2013 10:52:16 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.51]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id D4.A3.06969.FC884625; Mon, 21 Oct 2013 10:52:15 +0900 (KST) X-AuditID: cbfee68f-b7f836d000001b39-d3-526488cf6af4 Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A0.14.08134.FC884625; Mon, 21 Oct 2013 10:52:15 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MUZ00KBBX73S320@mmp2.samsung.com>; Mon, 21 Oct 2013 10:52:15 +0900 (KST) From: Jingoo Han To: "'Rafael J. Wysocki'" , linux-pm@vger.kernel.org Subject: [PATCH 1/2] ARM: EXYNOS: Use dev_err() instead of printk() for cpuidle driver Date: Mon, 21 Oct 2013 10:52:15 +0900 Message-id: <003601cece00$2affeba0$80ffc2e0$%han@samsung.com> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac7OACrLPK7Vosr9TAO9hX3+rOBtOw== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOIsWRmVeSWpSXmKPExsVy+t8zY93zHSlBBqfnW1o0XA2x2DhjPavF vM+yFpcXXmK16F1wlc1i0+NrrBafe48wWsw4v4/Jon9hL5PF+hmvWRy4PO5c28PmsXlJvUff llWMHo8WtzB6fN4kF8AaxWWTkpqTWZZapG+XwJXx5nQ/a0EDZ8Xxh4dZGxg3sHcxcnJICJhI LLn/lxnCFpO4cG89WxcjF4eQwDJGiXsvJjPCFD16fJ8ZIjGdUeLTkfvsEM4vRonfk2ewgFSx CahJfPlyGGysiICjxMEbbUwgRcwCd5gkLrVdAhslLBAh0fBjHROIzSKgKjHn1nSwZl4BW4mb fSfZIGxBiR+T74HFmQW0JNbvPM4EYctLbF7zFugMDqCT1CUe/dWF2KUncefJZ2aIE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IV4UxIrq1KL8uOLSnNS iw8xJgM9OpFZSjQ5H5ii8kriDY1NzIwsjcwsjEzMzUkTVhLnPdhqHSgkkJ5YkpqdmlqQWgSz hYmDU6qBcelcL5ub/6L57nxZo3O+5/lxDqtrs+ZWbTjdrlv0gbmmKaU3x/Pai8LT8Xv71zx5 EqydtIdV++Pad/q/r8rPU1wdsmHjdAul9LAVJ7cxuh6/+fNLXcr0JYY1tvapv/1CLvcVSH89 d4HXbfGyw6Vt7dNXHlkgsmC2hDTfo6dHJrlN36c9Sbtx+nElluKMREMt5qLiRABZyehxRwMA AA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20131020_215251_375406_4C03F1FF X-CRM114-Status: GOOD ( 10.26 ) X-Spam-Score: -7.3 (-------) Cc: 'Jingoo Han' , linux-samsung-soc@vger.kernel.org, 'Bartlomiej Zolnierkiewicz' , 'Tomasz Figa' , 'Daniel Lezcano' , 'Amit Daniel Kachhap' , 'Kukjin Kim' , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Change raw printk() call to dev_err() to provide a better message to userspace so it can properly identify the device. Signed-off-by: Jingoo Han --- - Based against pm-cpuidle branch - Tested on Exynos5440 arch/arm/mach-exynos/cpuidle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-exynos/cpuidle.c b/arch/arm/mach-exynos/cpuidle.c index 1bde6ad..6616e0f 100644 --- a/arch/arm/mach-exynos/cpuidle.c +++ b/arch/arm/mach-exynos/cpuidle.c @@ -206,7 +206,7 @@ static int __init exynos_cpuidle_probe(struct platform_device *pdev) ret = cpuidle_register_driver(&exynos4_idle_driver); if (ret) { - printk(KERN_ERR "CPUidle failed to register driver\n"); + dev_err(&pdev->dev, "failed to register cpuidle driver\n"); return ret; } @@ -220,7 +220,7 @@ static int __init exynos_cpuidle_probe(struct platform_device *pdev) ret = cpuidle_register_device(device); if (ret) { - printk(KERN_ERR "CPUidle register device failed\n"); + dev_err(&pdev->dev, "failed to register cpuidle device\n"); return ret; } }