Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1063004pxb; Thu, 5 Nov 2020 23:07:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXsZtX8Ww7/kiV7t7jFos0n587PueD8AAF1EE6oZG6Cjax7UKib9zPo+UY0H7fIuNzbYRn X-Received: by 2002:a17:906:2512:: with SMTP id i18mr736662ejb.184.1604646469416; Thu, 05 Nov 2020 23:07:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604646469; cv=none; d=google.com; s=arc-20160816; b=z3Fny9Ki3EEizv42UsUarMfbe1Lb/Q6qLTGEofa3LTyHgUgUkSNHsiTBvom9c+klbf cCNMPj/gELtgqoUC6UGWX4z1/k6i+503Ar3KkJM7ZAH4wlTpxziBF/UrcvDl26a1r2l8 sncwDOa8fClskHur/Tvw6XmQXR/2eG/RMTJwyvQidz37qpxSWwRSK85j5ds2wXcUiSEF sb5k55UiYQAXNpvowp1th+T7h0Z5Gwc9N3MBT3ZSBqPYZJtkR6v6ZQ7Y39VyPvs7Ed1I rdadphx2bh4IEFEOA/xUUHmqBWntCMuFjpfULlvoExqeF6AUlNiOKhPNsD4y5Dr9G3l0 BJ/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OM4R8kvz7DcEDGoVL/+jwadYBnqD63FlUWgPugvm78I=; b=yG5SpXrtx6qvZZ8ndK0NW/N5s3MrwoQ5R+/4qA4G7DO5iYN3lJQWdV04moB+JHUHvT ye1ws7Ca/Mk+8k7dNgKlWM6mdU1QBmEsS9wkjLnibUMpenFPYe/dxXK23xJNWS5SzU4s B0yGo8V2fph9Zna8mfuApPp2RrC68oHLebuLem05MgT6gw8P22W6+QoAeDuQhZa1wkw2 0BqmZuphfKrT0UaURykmB8Kgr3p3UyoaRLCcwVvLEX0cauPlPUYGyzlMS9gRkeHR76u+ fcJocvGZZphTrZLPNWWcOUFW21r/+7WkVUsUXkkx9+Y2S+jF5dSWuprBVS5MFIvbKw7Q YRfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="vJ5Si/G8"; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si206878ejj.673.2020.11.05.23.07.26; Thu, 05 Nov 2020 23:07:49 -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; dkim=pass header.i=@linaro.org header.s=google header.b="vJ5Si/G8"; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726533AbgKFHFj (ORCPT + 99 others); Fri, 6 Nov 2020 02:05:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726522AbgKFHFh (ORCPT ); Fri, 6 Nov 2020 02:05:37 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 60849C0613D2 for ; Thu, 5 Nov 2020 23:05:37 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id 72so459464pfv.7 for ; Thu, 05 Nov 2020 23:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=OM4R8kvz7DcEDGoVL/+jwadYBnqD63FlUWgPugvm78I=; b=vJ5Si/G8zW5asLYK4yzoXUH4+0noPeaZCYzJx6PYHk+ao2dzwXa9pytvIQHVFHK5Ne vBEoN04Ch3a1Gg8/qxcpogXvPkWOJK7Xa6Vsrg9HJ2iRgrSkLzwZzJ5HojbFqYCCbXZt aFK8L8fkGrFm88BWuj5hBUoXR/aSe0H1TumxaT3sDKDCMe82hj6cjfywQElRrKHacejx 3d9cbL/yM4akOHEJ3TUOn/TniQKyGE5eQiOcAv7hO2OPghXeHc2WFIH3nzHf88MGZwTr AlctnMbWTwX7sMvAQcgDy0+W45oH8VVJyBoXLwuHYQZt1YYKxtFOV2vgpByiR71Aznl4 XJ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=OM4R8kvz7DcEDGoVL/+jwadYBnqD63FlUWgPugvm78I=; b=lHVvTN/imAfeQcuUIuGu0MsjYdMDovOKCghQd4PPVRGr8HUxh8VM5YmpM3SQAmpsdt GaR519EjOc1tA5jAVSxc+EHgjo1+ngIOqjRdmU7u2UZGfZc4u9Lecr2vbPdMt6lxxgFC IEWoN9cC+lWWICnzxUyGgns6UuERVPsoKV3SNKzg/8nBO+0mgqARPnzO/4UU5Gw67shQ iPVZywbart90mUi2kcXxjNR4GBhriPRUkiIYDCnsqxvgdtkNUtZp723LdQHXHHNm7Ixd 74hhmEivWXgweJB6cHZEjbROS+y0sZr6JESyI2j1fMvno9RG6FQ/kGkVH83FNZriwozd V1uQ== X-Gm-Message-State: AOAM532BOu7Jc6Oet/eyeXEldhcz98qnaZnh4RMOnb0QzTFTKfzz47dX X9RSg7mNrL6Kt42TmunSyu4+8w== X-Received: by 2002:a62:1c92:0:b029:15c:aff1:b16f with SMTP id c140-20020a621c920000b029015caff1b16fmr687698pfc.0.1604646336961; Thu, 05 Nov 2020 23:05:36 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id z11sm819019pfk.52.2020.11.05.23.05.36 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 23:05:36 -0800 (PST) From: Viresh Kumar To: Rob Herring , Tomeu Vizoso , Steven Price , Alyssa Rosenzweig , David Airlie , Daniel Vetter Cc: Viresh Kumar , 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 Subject: [PATCH 6/7] drm/panfrost: dev_pm_opp_put_*() accepts NULL argument Date: Fri, 6 Nov 2020 12:33:26 +0530 Message-Id: <43be6d118201f9feb70fb030390fddce0852ab0b.1604646059.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) -- 2.25.0.rc1.19.g042ed3e048af