Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3066897pxb; Mon, 9 Nov 2020 01:20:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJxITX7HWO6FahrpMtHo4U1LzCoBK6U412UoPBSsj0p391vgEkNpirZOZsLTwzGlss/Zx0RX X-Received: by 2002:a17:906:77c5:: with SMTP id m5mr14244554ejn.424.1604913607955; Mon, 09 Nov 2020 01:20:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604913607; cv=none; d=google.com; s=arc-20160816; b=gLGaNS3xlmxOhZXVFzBAYK01s2YtcmrFqi2VfZVpte3qz/Ymthgf74UywSxBNccNpX NFOOWx5G7xSEcT7BenRnrmBJNVCIhDAfZGrgUsKT5Emvg7oR7lEW+ZWENQKUHaQHANrk uDdzwRR3nLcwXrucYZKxX1WVd2yS7v8G1ywLsrV+hZnmQjZjRuP4nSBkN78XyHwm9jB0 A+33geBYKXsX+Ubn+1X4zLr29K/V3vFzVipD7QJnT2QGOLNPup8SMorkW4Mg5E3gZdjK GzjyXx10+fAE9WYIsNEkL6uN2etg0YhSPuyOTuwW0KKC6ICsnXn93jeHMDbmOrRbxaHt Oi5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=EMY3Ke+0GOrT1H2XYNLXe4HuBtaLfFQu2t4Xkl3uyWE=; b=q/Qoi5XSeeEtMxSvJfmO+YMYRM19nCqqkny5fqaX0/V/xfSRLsHtAdle8moKkDjv21 nqSm1A6wxS/1IBH/GZ+HSXyKBUAMR7dZq8ncWae7c3BsJCW4Cc9T4lClEeYCqm9+vdiw NokzIR80t4Idr9P7AesOFP4izs1URdtVMbKI+/pAHBI5zMmTwBMlNKvZXUTDRzFmHA7o KrIm87TIFD29eRcLRPmdaCOkCDaGMOztWFD4TVquVlW6N0FL9yqHPaVbW/DgR+valD85 H0oy/8RWLo7SkQ/WooRUrXkFHF3uCivK0DZ22T5hzBhJ/ANVAPTx/K/ooyh2/F9Hw8H2 aQ0Q== ARC-Authentication-Results: i=1; mx.google.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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u20si2220696edr.287.2020.11.09.01.19.45; Mon, 09 Nov 2020 01:20:07 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729265AbgKIJRp (ORCPT + 99 others); Mon, 9 Nov 2020 04:17:45 -0500 Received: from foss.arm.com ([217.140.110.172]:35880 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgKIJRo (ORCPT ); Mon, 9 Nov 2020 04:17:44 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 425E91042; Mon, 9 Nov 2020 01:17:44 -0800 (PST) Received: from [192.168.1.179] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 6ED713F718; Mon, 9 Nov 2020 01:17:42 -0800 (PST) Subject: Re: [PATCH 6/7] drm/panfrost: dev_pm_opp_put_*() accepts NULL argument To: Viresh Kumar , Rob Herring , Tomeu Vizoso , Alyssa Rosenzweig , David Airlie , Daniel Vetter Cc: linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , digetx@gmail.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <43be6d118201f9feb70fb030390fddce0852ab0b.1604646059.git.viresh.kumar@linaro.org> From: Steven Price Message-ID: <8f59b818-306e-05e2-3a0a-8351098b1bbb@arm.com> Date: Mon, 9 Nov 2020 09:17:47 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <43be6d118201f9feb70fb030390fddce0852ab0b.1604646059.git.viresh.kumar@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/11/2020 07:03, Viresh Kumar wrote: > The dev_pm_opp_put_*() APIs now accepts a NULL opp_table pointer and so > there is no need for us to carry the extra check. Drop them. > > Signed-off-by: Viresh Kumar Reviewed-by: Steven Price > --- > drivers/gpu/drm/panfrost/panfrost_devfreq.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c > index 8ab025d0035f..97b5abc7c188 100644 > --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c > +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c > @@ -170,10 +170,8 @@ void panfrost_devfreq_fini(struct panfrost_device *pfdev) > pfdevfreq->opp_of_table_added = false; > } > > - if (pfdevfreq->regulators_opp_table) { > - dev_pm_opp_put_regulators(pfdevfreq->regulators_opp_table); > - pfdevfreq->regulators_opp_table = NULL; > - } > + dev_pm_opp_put_regulators(pfdevfreq->regulators_opp_table); > + pfdevfreq->regulators_opp_table = NULL; > } > > void panfrost_devfreq_resume(struct panfrost_device *pfdev) >