Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1392609pxa; Fri, 28 Aug 2020 11:20:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgQs3kwFPp6vLhmgw/5sHggRlOGBFBhP7pQI5BYBf/EReqfLMj/vlbTgRFnUhlOTS7x9x2 X-Received: by 2002:a05:6402:787:: with SMTP id d7mr3304786edy.234.1598638831487; Fri, 28 Aug 2020 11:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598638831; cv=none; d=google.com; s=arc-20160816; b=ex0U9VORr2RIhxR36MW4SdL4Qq28oE8WApBkhu9lzydBCTd9xedZkrAbU0srOCUnYc Hn3D/11XSRn9KOUf73UGxgzuefGUxvZcDuvSJ5GFoRd65RaBiWfgtm7Y+Wcxw7HySYy7 EjB9+NP/HJJokvhdMm+S4CbrqBzLLNf1xMFsDFMjP6YhOMcDYZcjUagxQT+tmhCUJOe8 lT1Uxt9rE1bwi79oCd+dftwidN2uvx2pJxXUiILhzYOOAqQ2lyAft0E4HHtOLLu9l3Yz ombyVrj1pLjJYNJ9o039D8/BAZKeAGFso9nLMCF9/RfrA6s0l/SLH6Qtjx/BVbqwIt8s +ocg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=x4Tkx5cvTIZX2IKIPG2Xun4vWEN6aBBz7OiP1w4AdpE=; b=b26n6V6AIHVumRRGD7uW6gkslzN4eNcjzvNFRTgWFFB8n4KklEEwOSt9NKCM0R0j/R MbZwY15pOWwgs24i5hdpZThbb0PlyHHwZ/9TWTy9rpiQrVBnjbCMrnc+CTcxMd0Es7EG Nm0/nxLn45GHNHrjJzgv1Qa9r3oVJlqBTcoy6ycnZIUea+WeKe0wvSVERKKWE0whVy1T SzziD0uB5a1aKON8nTAhMKHbB7pk6eTGWl/DCD2fRFVTf1wdAtWc2J3QDd3Yy/0Ajfam gNYLd64qXNiXif1e3jqVHXqCOZ+NOKxUFfHz6B+b/np0ffrRZLwnqvb+7GfLffM1ZeD4 TefQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="dqqps0/H"; 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 j2si1151471edp.166.2020.08.28.11.20.06; Fri, 28 Aug 2020 11:20:31 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="dqqps0/H"; 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 S1727922AbgH1SRj (ORCPT + 99 others); Fri, 28 Aug 2020 14:17:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbgH1SR3 (ORCPT ); Fri, 28 Aug 2020 14:17:29 -0400 Received: from mail-ej1-x644.google.com (mail-ej1-x644.google.com [IPv6:2a00:1450:4864:20::644]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A84FBC06121B for ; Fri, 28 Aug 2020 11:17:26 -0700 (PDT) Received: by mail-ej1-x644.google.com with SMTP id j25so327564ejk.9 for ; Fri, 28 Aug 2020 11:17:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=x4Tkx5cvTIZX2IKIPG2Xun4vWEN6aBBz7OiP1w4AdpE=; b=dqqps0/Ht78gHt72hdwH44ctuWKIh0vfLimwd8lmZDLDhybUKNTwcHIrsVXX4g6NpM hmeTQJWVVkcdLJzNNryqU6eQIqBorKRjXReEoEqjH0cUbZfs27clSs0vPprnDmwCTKCG NJfoyggS/2btQJbU3OWTRQqP86VZwwpBUoWmyaF681lObsE9LJhPtcxc/VVhg2oTBK2G VELw6QmLXvaA7ApYO15N/5jhFZYTJdaKh/dRChfEvhYtnVrbaoxAdTLB8MH0SQQWnYXr CvV7MDtfeNfu9Ee1N/v5VZ+sMUiC5/tOjijtDtj76/mmEnRDsbOkMaMcm19mVEPkJ7Dd DGFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=x4Tkx5cvTIZX2IKIPG2Xun4vWEN6aBBz7OiP1w4AdpE=; b=V4V6KAViG3VsVLdUwDbzc/Q8RstMODlDCcJM0WjzyBS/HLz0HDjQvV1bfJKWae5EuK dkVIOR1889o7gtHbxJZrUfPCYGpmH70cNc/om+SBQ2sN0YAALh2olNlP/hbD2ZL8GaCu dLDRU0QJphcKt94I4xMdGs0ocR8OduKq7Fo3E+2jC/5nUENNO9NnS70diYHtJgsaW4yt i8HL7HJ3ec4Nexi1EuxJWjwypSaEPkMNwxGsvfuqhp9gcABqER1oft9SVSofhRZyfJdY mRE1T6KzY/JpXyk831QNpWq3X0AJfHZhd8FqfjCqJteArge9SMAT6oT+RhnczpG5hc46 b0Zg== X-Gm-Message-State: AOAM532Go4AvcHbc3r2ieDEhd9X3JLQmpSvs+hXrNl+im3QgTNn+/abG I7O7LiC5VRFFlVXa98HS/KWw8ehPpgGlCqAVYH/kvw== X-Received: by 2002:a17:906:d8ca:: with SMTP id re10mr3133999ejb.382.1598638645348; Fri, 28 Aug 2020 11:17:25 -0700 (PDT) MIME-Version: 1.0 References: <20200827200827.26462-1-krzk@kernel.org> In-Reply-To: <20200827200827.26462-1-krzk@kernel.org> From: Bartosz Golaszewski Date: Fri, 28 Aug 2020 20:17:14 +0200 Message-ID: Subject: Re: [PATCH 1/6] gpio: bcm-kona: Simplify with dev_err_probe() To: Krzysztof Kozlowski Cc: Ray Jui , Linus Walleij , Florian Fainelli , Scott Branden , bcm-kernel-feedback-list@broadcom.com, Keerthy , Grygorii Strashko , Santosh Shilimkar , Kevin Hilman , Michal Simek , linux-gpio , LKML , Linux-OMAP , arm-soc Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 27, 2020 at 10:08 PM 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-bcm-kona.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/gpio/gpio-bcm-kona.c b/drivers/gpio/gpio-bcm-kona.c > index cf3687a7925f..1e6b427f2c4a 100644 > --- a/drivers/gpio/gpio-bcm-kona.c > +++ b/drivers/gpio/gpio-bcm-kona.c > @@ -590,10 +590,7 @@ static int bcm_kona_gpio_probe(struct platform_device *pdev) > dev_err(dev, "Couldn't determine # GPIO banks\n"); > return -ENOENT; > } else if (ret < 0) { > - if (ret != -EPROBE_DEFER) > - dev_err(dev, "Couldn't determine GPIO banks: (%pe)\n", > - ERR_PTR(ret)); > - return ret; > + return dev_err_probe(dev, ret, "Couldn't determine GPIO banks\n"); > } > kona_gpio->num_bank = ret; > > -- > 2.17.1 > Queued the entire series with all the tags, thanks! Bartosz