Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp951391pxa; Thu, 27 Aug 2020 22:24:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGLvkgoaHOUs9e50h2i+4xK42PLE4cuHMFccCGZLtqPDcOKyEp9kLZlO7t6H/YnQ9tGQZD X-Received: by 2002:a17:906:e24f:: with SMTP id gq15mr25417ejb.395.1598592270756; Thu, 27 Aug 2020 22:24:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1598592270; cv=pass; d=google.com; s=arc-20160816; b=KQ2bQrhLRQB1nokqsDzNxiG09O6dr/Xea9oBDyOpjC+dnRgw1K5uHp3mr+S4ijLBON nNHde3evFKmHxlNiV64LVPZM/HUzCSXuvr5ilYXOspXInFy2TO5nCn/RERptKYfreKtp CXXqvkMRfbxxDPgmF9GCR0ASHeZlcRt1Lt9y1e2mjdQd6fArgU2xb4TyKwLbK3nFs+W8 jt2fSIknc/5XNCaLq5JpJCvFWQ5VT/XZKe3qgOpmqhIcSwLzcRxI+td16Vhg8HLAvlJH o86VPL5ksVaxPf+ny256l6T8cEyw8h86Kz5yec6kouW9TRU9d25IsfeCQwBHH+l3kdb9 u2aw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:to:subject:dkim-signature; bh=hucd51OEWeU2cfxCzoov0A6CVQ3Cqad+nGwJUzVGryE=; b=TLlGgs8+PQz7EsXRx8ukORhWACUFymzYR3XWQDC8KZ43lwcWtkPSG0oJFfiUOwa69L CYajO5KWpsw3WSuL05cH27t9U4SHg++K7xMGeaHxp/5t0l/FuIlACgxzpsgoqAHxjQRM Guno4dT+lwZfRsG2KZJTULzgzbU9u/g5PanJcex+/smKQ+2qPVcx4isznhFGPK46XAc/ ZUZBjlXry7mh+z7OvTg1dEwP9mEztaNUlhJh61aQ1ONeiV6r4lLseFlNib0WouPRVMYP ao3K511cogH+H8nojreGutvxRxhj7q7xqCWORzhnHh/xv/fxwXfoZ6QYnQxfUv8GHiaR 1P7g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=QNwCFdE+; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si2840930ejm.213.2020.08.27.22.23.50; Thu, 27 Aug 2020 22:24:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector2-xilinx-onmicrosoft-com header.b=QNwCFdE+; arc=pass (i=1 spf=pass spfdomain=xilinx.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726714AbgH1FUb (ORCPT + 99 others); Fri, 28 Aug 2020 01:20:31 -0400 Received: from mail-dm6nam10on2041.outbound.protection.outlook.com ([40.107.93.41]:12385 "EHLO NAM10-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725849AbgH1FU3 (ORCPT ); Fri, 28 Aug 2020 01:20:29 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JQzI8UF0jkE9z+/wH5Z3nTPZLklQzP7HpsfIPv064jOe0lv+16e4WgA4diavYgIfgayt/gr1K8rqY3BIEyhpJhJ8lc8GSP9RD80g0//o8Dg2W5eiKjiKOgwWyj+5R4xrxzkmcx3yw28Xo9McXleQ6R9c7i3/HvIformP9cN8K+RcwxteGlboi08wOninb2AAsDtnLeyvdcijOorMfekjc6N07P8/y6sAvoK30TArRca9tiUGd8wCwbdN8w4MWu2sm57uY4r1+/wGoBlQIrGGsAkdUtJFBjf8GOHNPnsDW8fRlRI1cGC7H0FIGVhLIW5h1fQdWeobhtHpClD8thbH9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hucd51OEWeU2cfxCzoov0A6CVQ3Cqad+nGwJUzVGryE=; b=eNnSQepgcTlpfyaYA2zQ0PZm3svLO4FKO76UJje58Jvwy5Js66ZHN5AX1RahJOxldV0CjKsBnKWdvlaXK/iYWGu78urBBsFzAp+UAsyJXvt2pdJp24HMrkAbtpkjEPp8XndGzYm5A+5OIFv2N7R1eOa8VwzbNnUKKgSsaUfa/uzRbQKJQGSEHlgaHSGdzloBEAHKkOZE1Fb8CFbqeB/vxvw/dMyskB+y6D9XL8kwdlEYArhGGqOYiGVl3wbkwGHBDpdH1AK02y4ITyv5tXO8vyOM3Mi5hrwH9wWkP9Xs0gq7nfK/z45sYrKHy3x3KvuDvX1cPN87fqySus5jAikG3w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.60.83) smtp.rcpttodomain=lists.infradead.org smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hucd51OEWeU2cfxCzoov0A6CVQ3Cqad+nGwJUzVGryE=; b=QNwCFdE+ZtlBbs9Qz3jz01VM4pvIa3zVgpolDsaQUp09l1SzNGEGFi/VXkDE0IECz+gPJbTRPQ84MJoXurE3P2pOQP/BD7DnTItueYHU2gaCRpNPeWa4cxh+KBNvJpLsK/qmGiIYo3MyovGZMroWaRNedcHzeSQ9Fqbn+NkqDIw= Received: from DM5PR18CA0078.namprd18.prod.outlook.com (2603:10b6:3:3::16) by BY5PR02MB6114.namprd02.prod.outlook.com (2603:10b6:a03:1fa::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19; Fri, 28 Aug 2020 05:20:24 +0000 Received: from CY1NAM02FT022.eop-nam02.prod.protection.outlook.com (2603:10b6:3:3:cafe::a0) by DM5PR18CA0078.outlook.office365.com (2603:10b6:3:3::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3326.19 via Frontend Transport; Fri, 28 Aug 2020 05:20:24 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT022.mail.protection.outlook.com (10.152.75.185) with Microsoft SMTP Server id 15.20.3326.19 via Frontend Transport; Fri, 28 Aug 2020 05:20:24 +0000 Received: from [149.199.38.66] (port=36816 helo=smtp.xilinx.com) by xsj-pvapsmtpgw01 with esmtp (Exim 4.90) (envelope-from ) id 1kBWnm-0005nt-LR; Thu, 27 Aug 2020 22:19:50 -0700 Received: from [127.0.0.1] (helo=localhost) by smtp.xilinx.com with smtp (Exim 4.63) (envelope-from ) id 1kBWoK-0000cH-41; Thu, 27 Aug 2020 22:20:24 -0700 Received: from [172.30.17.109] by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1kBWoH-0000Wf-FZ; Thu, 27 Aug 2020 22:20:21 -0700 Subject: Re: [PATCH 6/6] gpio: zynq: Simplify with dev_err_probe() To: Krzysztof Kozlowski , Ray Jui , Linus Walleij , Bartosz Golaszewski , Florian Fainelli , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Keerthy , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Michal Simek , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20200827200827.26462-1-krzk@kernel.org> <20200827200827.26462-6-krzk@kernel.org> From: Michal Simek Autocrypt: addr=michals@xilinx.com; keydata= xsFNBFFuvDEBEAC9Amu3nk79+J+4xBOuM5XmDmljuukOc6mKB5bBYOa4SrWJZTjeGRf52VMc howHe8Y9nSbG92obZMqsdt+d/hmRu3fgwRYiiU97YJjUkCN5paHXyBb+3IdrLNGt8I7C9RMy svSoH4WcApYNqvB3rcMtJIna+HUhx8xOk+XCfyKJDnrSuKgx0Svj446qgM5fe7RyFOlGX/wF Ae63Hs0RkFo3I/+hLLJP6kwPnOEo3lkvzm3FMMy0D9VxT9e6Y3afe1UTQuhkg8PbABxhowzj SEnl0ICoqpBqqROV/w1fOlPrm4WSNlZJunYV4gTEustZf8j9FWncn3QzRhnQOSuzTPFbsbH5 WVxwDvgHLRTmBuMw1sqvCc7CofjsD1XM9bP3HOBwCxKaTyOxbPJh3D4AdD1u+cF/lj9Fj255 Es9aATHPvoDQmOzyyRNTQzupN8UtZ+/tB4mhgxWzorpbdItaSXWgdDPDtssJIC+d5+hskys8 B3jbv86lyM+4jh2URpnL1gqOPwnaf1zm/7sqoN3r64cml94q68jfY4lNTwjA/SnaS1DE9XXa XQlkhHgjSLyRjjsMsz+2A4otRLrBbumEUtSMlPfhTi8xUsj9ZfPIUz3fji8vmxZG/Da6jx/c a0UQdFFCL4Ay/EMSoGbQouzhC69OQLWNH3rMQbBv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AGfbdKSMI83IJd3V+N7FVR2BWU1rZ8CFDFAuWj374to8KinC7BsJnQlx7c 1CzxB6Ht93NvfLaMyRtqgc7Yvg2fKyO/+XzYPOHAwTPM4xrlOmCKZNI4zkPleVeXnrPuyaa8 LMGqjA52gNsQ5g3rUkhp61Gw7g83rjDDZs5vgZ7Q2x3CdH0mLrQPw2u9QJ8K8OVnXFtiKt8Q L3FaukbCKIcP3ogCcTHJ3t75m4+pwH50MM1yQdFgqtLxPgrgn3U7fUVS9x4MPyO57JDFPOG4 oa0OZXydlVP7wrnJdi3m8DnljxyInPxbxdKGN5XnMq/r9Y70uRVyeqwp97sKLXd9GsxuaSg7 QJKUaltvN/i7ng1UOT/xsKeVdfXuqDIIElZ+dyEVTweDM011Zv0NN3OWFz6oD+GzyBetuBwD 0Z1MQlmNcq2bhOMzTxuXX2NDzUZs4aqEyZQ= Message-ID: Date: Fri, 28 Aug 2020 07:20:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20200827200827.26462-6-krzk@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 82cac6bb-de2e-4e94-e91a-08d84b121145 X-MS-TrafficTypeDiagnostic: BY5PR02MB6114: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2043; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: l+OR7H6Fhtt1hIlYk7xbDdejqsWYSShCztSJzhbqQRRU+Mm33bwFgehI924zM3ttKC/+6PsPMPGBMHPFKL3OxTTWSc669tqGDKx+534ZMAaZy82CWmEuFjyfvnIYi91AANoQxckfCuTj+hgRJmVpgEYj3k3fW7UNMLl2ChdXV56YEk36Am3uc32ZX01cmhOOnxVCwtOzM+zC3EQFrmsYi+u5H+XydrZ8IlhKMTHOwyq0613kpTyfjOPouaWGqHjrvs7nM4Q0YFPQL6XT5aJMYq6fjCUprdXCXvyxqyAEjyk426WbjBdRYjxp4I3hNuM3UxZdvxBYAviRCekPsuCGPrAxmsMkh3C8r7P8JhrwOVF6WLt3PG/adau3JBsgu6KI8Vj5uV4C2tNKYbFjcsww+IS4hTwhhiFT3Uka4fcw2Q+69ucC0fBLHmp8tcE1lW9q X-Forefront-Antispam-Report: CIP:149.199.60.83;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:xsj-pvapsmtpgw01;PTR:unknown-60-83.xilinx.com;CAT:NONE;SFS:(39860400002)(396003)(136003)(376002)(346002)(46966005)(9786002)(8936002)(31696002)(7416002)(356005)(336012)(82310400002)(36756003)(8676002)(2616005)(5660300002)(186003)(44832011)(426003)(6666004)(26005)(47076004)(81166007)(110136005)(70586007)(478600001)(316002)(2906002)(31686004)(83380400001)(82740400003)(70206006)(921003)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Aug 2020 05:20:24.4034 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82cac6bb-de2e-4e94-e91a-08d84b121145 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.83];Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-AuthSource: CY1NAM02FT022.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR02MB6114 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27. 08. 20 22:08, Krzysztof Kozlowski wrote: > Common pattern of handling deferred probe can be simplified with > dev_err_probe(). Less code and also it prints the error value. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/gpio/gpio-zynq.c | 8 +++----- > 1 file changed, 3 insertions(+), 5 deletions(-) > > diff --git a/drivers/gpio/gpio-zynq.c b/drivers/gpio/gpio-zynq.c > index 53d1387592fd..0b5a17ab996f 100644 > --- a/drivers/gpio/gpio-zynq.c > +++ b/drivers/gpio/gpio-zynq.c > @@ -929,11 +929,9 @@ static int zynq_gpio_probe(struct platform_device *pdev) > > /* Retrieve GPIO clock */ > gpio->clk = devm_clk_get(&pdev->dev, NULL); > - if (IS_ERR(gpio->clk)) { > - if (PTR_ERR(gpio->clk) != -EPROBE_DEFER) > - dev_err(&pdev->dev, "input clock not found.\n"); > - return PTR_ERR(gpio->clk); > - } > + if (IS_ERR(gpio->clk)) > + return dev_err_probe(&pdev->dev, PTR_ERR(gpio->clk), "input clock not found.\n"); > + > ret = clk_prepare_enable(gpio->clk); > if (ret) { > dev_err(&pdev->dev, "Unable to enable clock.\n"); > Reviewed-by: Michal Simek Thanks, Michal