From patchwork Sat Oct 1 10:12:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Bhuvanchandra DV X-Patchwork-Id: 9359147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BC0E36075E for ; Sat, 1 Oct 2016 10:18:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AACE52984D for ; Sat, 1 Oct 2016 10:18:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9CFDF29851; Sat, 1 Oct 2016 10:18:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 20D572984D for ; Sat, 1 Oct 2016 10:18:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bqHMA-0003CL-Qi; Sat, 01 Oct 2016 10:17:22 +0000 Received: from mail-eopbgr10108.outbound.protection.outlook.com ([40.107.1.108] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bqHKN-000277-6d for linux-arm-kernel@lists.infradead.org; Sat, 01 Oct 2016 10:15:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ZXKMk820IIlDkle8oE4j6SQhMHcFhGxfq/p3ZOkkd/E=; b=r6yoS44xyC9dzriITj7bkNcfeF+gV5v8glfaiuBnEzTLrAjfC7zqcpCfRuDS47t0qeR5xWdmv8qwN+CCyhRTXxcdMGSM7L7ZKM2AIJPcpelCkiiZz6dV6zeZwOdlf9gKl620ga2Bt3r30B31f52G8udQuEGb2U9XM7hXHYU69ro= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=bhuvanchandra.dv@toradex.com; Received: from tdx-in-nb-0014.toradex.int (115.115.243.34) by AM3PR05MB1396.eurprd05.prod.outlook.com (2a01:111:e400:5871::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Sat, 1 Oct 2016 10:14:51 +0000 From: Bhuvanchandra DV To: , Subject: [PATCH v2 1/6] pwm: print error messages with pr_err() instead of pr_debug() Date: Sat, 1 Oct 2016 15:42:30 +0530 Message-ID: <20161001101235.24598-2-bhuvanchandra.dv@toradex.com> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20161001101235.24598-1-bhuvanchandra.dv@toradex.com> References: <20161001101235.24598-1-bhuvanchandra.dv@toradex.com> MIME-Version: 1.0 X-Originating-IP: [115.115.243.34] X-ClientProxiedBy: PN1PR01CA0050.INDPRD01.PROD.OUTLOOK.COM (2a01:111:e400:5a3d::22) To AM3PR05MB1396.eurprd05.prod.outlook.com (2a01:111:e400:5871::11) X-MS-Office365-Filtering-Correlation-Id: 417dee22-fbeb-4274-7745-08d3e9e3c976 X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1396; 2:AvSHRmWzvRYQYzLyslr3IaC+IrTS7esBdhw5zzKhAvBJ8F7A82gFNU2qwZGm5VYGlO96yZtgubs6nSCLQml3kgA9qFa+sIABUbZHhhkugOkDIPpxaYn1EwA5XCXuDpc5wzqZO9VsgDs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0bN/26DgT0glvtm8qWI2q+31s+Kyp6cHmJIPCynqck3jXUpUIjDlzInT0UWy7v8gnlrHNYTs2M6zyX10Dk4qu5s3NzbpJklhBBcCe8hCWHsSShIixxn1MH1s1ralXYEWb7mr6Hb/oifzSulHriHHOQ5ljQY6WrmzbKEUIo3G9ToD1Yjme9dfxYogQ2simgdm+ygdpiipazTQh5f/ba/5WG3GYDxyRJ4oZoMotWWpNkA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:AM3PR05MB1396; BCL:0; PCL:0; RULEID:; SRVR:AM3PR05MB1396; X-Microsoft-Exchange-Diagnostics: 1; AM3PR05MB1396; 4:x7SzI5KP2/RlGr3RBsA9eoUXyklJJ/0FPtEZ7kKNl4XiF0a0AVORIdOo5kJZBjyrC2ZYOlWstmg/MqFUpnvG/dMlzSdK+cmhOAhvyGNQRhj2C2EIS2HTT3IDpV88QTF7wgr1qYBqZMwFgdA7x48zmrEw/u98ItlbVgdlW+d89naYnaB5MaZtCXNlKsPrdzuG0ipEQOhyn1bX5g0JV0ZjjvgPJ0JhG6Q/64jl9wy1O9ej/3zev7IyOoPoDFuIG/3ORsqYOFoSKycVUQdgYzpnVlxc6wjiOPGuoaGqZmic5C/nPhkiGv4KSlAYJheljRaERg9KYdEgjzbhM6uCWCHSTlEHE4Qa9CjYDAEGmRGr4oM7GMBcUSnIMsU6ccon+JWC X-Forefront-PRVS: 00826B6158 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(7416002)(5820100001)(92566002)(36756003)(47776003)(189998001)(6666003)(305945005)(2870700001)(68736007)(229853001)(5001770100001)(97736004)(66066001)(4326007)(33646002)(105586002)(5660300001)(50226002)(106356001)(8666005)(2906002)(586003)(2950100002)(107886002)(15650500001)(50466002)(1076002)(76176999)(81156014)(50986999)(81166006)(7736002)(6116002)(3846002)(23676002)(42186005)(7846002)(8676002)(53416004)(101416001)(69596002)(86362001)(19580395003)(4001430100002)(19580405001)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:AM3PR05MB1396; H:tdx-in-nb-0014.toradex.int; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtBTTNQUjA1TUIxMzk2OzIzOlRCWTNsVXFhb3V5SW9ySDVudHFGRTYvMngy?= =?utf-8?B?dUVxaEhsdE5MbDZlRTlTbzc2YWNNWUZVYUZ6dlcvZmRsWUZ1a1VWcTJOdTdE?= =?utf-8?B?bFhSVU9SYkJIV0xuOWtweE1DV25OcHN2bXpsWUFpSVhSOG9jTFJscjl5ZGJW?= =?utf-8?B?dW9vOU1MejZadExaaHR4MUxGNVEvOXVpc21adnhBTUJCZU9BRGZnWmxFUUoy?= =?utf-8?B?dWxmeEZmcTFwU21kdWtZTXU5YWdPcVlHK2VIY0lVWk55SmRsTENkbjZOb1Vt?= =?utf-8?B?Nkt1aHZORGQ3YzViUjIraEZMRkVrazk0NDNSTzc4SHRtMUNsOUJPNlJvOUJq?= =?utf-8?B?YWQyNEhOYWhkU1NNOEtodnZ0KzdsUURiczNEQWx4SitmZ1FJU05sMzRrNWsx?= =?utf-8?B?TnpRemZqUWI4SzlCRU9JN2JFQm0vOU5HZHhvN05VL2JDcmFoREMwWnBvTWNi?= =?utf-8?B?QkZNbTZhVXIrNXVnYkNkb1BZY2dNdTNrWDY1Q2FOaklESW95RVNuWUlFTnJC?= =?utf-8?B?TEdxaTdiOEJHUG03WnNWQWhTR1ozYlZOS3R4WVNiWDN3NXMxYXFHSDNZZGw5?= =?utf-8?B?M01pdGtab2tESk9OWllrY2gvK0I0WDQ3WmFnU09aMVlrdXowaWkzYlNKQTho?= =?utf-8?B?NHR5WElRZXRE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xxDbBYdKzii8GuK0yaBxLeam1NwTHLOEcEOzo0/TqjuBth3x1NEsn3H1YKUf7Sm3407e9lZBEGcz/6xf7Ws SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Oct 2016 10:14:51.2272 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM3PR05MB1396 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161001_031531_655894_DFA76DCC X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, linux-pwm@vger.kernel.org, l.majewski@samsung.com, Bhuvanchandra DV , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, stefan@agner.ch, robh+dt@kernel.org, kernel@pengutronix.de, fabio.estevam@nxp.com, linux-arm-kernel@lists.infradead.org, Lothar Wassmann Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Lothar Wassmann Make the messages that are printed in case of fatal errors actually visible to the user without having to recompile the driver with debugging enabled. Signed-off-by: Lothar Waßmann Signed-off-by: Bhuvanchandra DV --- drivers/pwm/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 0dbd29e..195373e 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -661,13 +661,13 @@ struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id) err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, &args); if (err) { - pr_debug("%s(): can't parse \"pwms\" property\n", __func__); + pr_err("%s(): can't parse \"pwms\" property\n", __func__); return ERR_PTR(err); } pc = of_node_to_pwmchip(args.np); if (IS_ERR(pc)) { - pr_debug("%s(): PWM chip not found\n", __func__); + pr_err("%s(): PWM chip not found\n", __func__); pwm = ERR_CAST(pc); goto put; }