Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2603268pxb; Fri, 5 Nov 2021 01:09:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyN3EDXDcuV7aScGdtKWkh9i6MpmjxA6KoBroUt2ZlIg8fqCcYziMAQt8OofD0Vew5Q0Nto X-Received: by 2002:a17:907:629b:: with SMTP id nd27mr69008303ejc.24.1636099787169; Fri, 05 Nov 2021 01:09:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636099787; cv=none; d=google.com; s=arc-20160816; b=sA3xcLjBMXYhi6KZrnpTzxaXk1ypQqGRUY2+3XqIT3TooW2kB1sI+//6UO9ngVinfS a1m0TPnIYW2y+soHBVV1hisxA7RmdN7478P4VIF2+avMMMqJbloD4ELgjy+lX3xk2CP8 ICc0iDiRWuZNRLLRH3U/IQ1yPgEQbUsPRGKO+HJrSXPjbZ5akxOEE/roHQQXiHOtxKKt T3L3ZLKSsh6cX4VrpEuIQVs2oyBQaDr9K02SDgzmXo8HVQZLugGYl2EiL4Z7prfqwFyG qzmA+/RakEjbA6NdR8dW/OU9+QORPpgfI2jYtMohoZRylxBaTzkEd4v5TpuondKfHvLV gQsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DeFJKeFYLY4jwWPQcVPSJek4iIMreIyM+aCmfXox410=; b=cadldkGRkneomSCV1m6cWdXKmZSF49m5wbw1/cgK+bWFADTAWbF6oJvQb4rnB5oaNe eVylvAQ0I9lfbNUWLYQ1b4+PCSqw/dx8NPJMEXOk/Bl721He8t//iL9oJCM219x2TCwn fj5jhj8RvAfB9osqsB4n09TBBMAtGYEEjoosYflu8qCF2pb5bezUh1NGNiS7gFdLaHVZ JlCyonEj7f7lmA9KP5uiGz4qCi91B1zI1kVMan6d689MyUb4hN3cBQU5ChtSEpwOV+uf odUo3rRDAy+e4DXqSzVds+EDx8s+Sifs741x9mvjirdcYT0WrqKB2Pcw4JZzLOYdePUK ONQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=K2bHre3P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds17si16787843ejc.549.2021.11.05.01.09.23; Fri, 05 Nov 2021 01:09:47 -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=@linuxfoundation.org header.s=korg header.b=K2bHre3P; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232365AbhKEG4v (ORCPT + 99 others); Fri, 5 Nov 2021 02:56:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:36710 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbhKEG4t (ORCPT ); Fri, 5 Nov 2021 02:56:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18AEB6124F; Fri, 5 Nov 2021 06:54:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636095250; bh=HQhrS1X5t7IMuJtjnHPKK3V+2VJ1abmG4ti9NZ7i0kQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=K2bHre3PZkavP+PA6upnzoyy0LAgcnIlGoJTLFapnyqPTLr4g1UR/eTXGkhpgFsp6 goBuL+0DMXsBVgLxxeye07zM1J6sSq4gFyz+/QKvm2MbVF6tbdPOQzP+fF5sHAQgTH PxC/qS6wWEqXgNHtI+bIK27onjvZcuzdQdsiKANI= Date: Fri, 5 Nov 2021 07:54:08 +0100 From: Greg Kroah-Hartman To: Cai Huoqing Cc: "Rafael J. Wysocki" , linux-kernel@vger.kernel.org Subject: Re: [PATCH] driver core: platform: Make use of the helper function dev_err_probe() Message-ID: References: <20211105030959.730-1-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211105030959.730-1-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 05, 2021 at 11:09:59AM +0800, Cai Huoqing wrote: > When possible using dev_err_probe() helps to properly deal with the > PROBE_DEFER error, the benefit is that DEFER issue will be logged > in the devices_deferred debugfs file. > BTW rename 'dev' to 'pdev'. "BTW"??? > Signed-off-by: Cai Huoqing > --- > drivers/base/platform.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/drivers/base/platform.c b/drivers/base/platform.c > index 598acf93a360..5befd3258677 100644 > --- a/drivers/base/platform.c > +++ b/drivers/base/platform.c > @@ -253,13 +253,14 @@ EXPORT_SYMBOL_GPL(platform_get_irq_optional); > * > * Return: non-zero IRQ number on success, negative error number on failure. > */ > -int platform_get_irq(struct platform_device *dev, unsigned int num) > +int platform_get_irq(struct platform_device *pdev, unsigned int num) Why change the variable name? It has nothing to do with this change, please do not do that. thanks, greg k-h