Message ID | 1b1c2086f01a27f7da6e6512dd47d47d153f626d.1604646059.git.viresh.kumar@linaro.org |
---|---|
State | Accepted |
Commit | e91e3d902b76c3f2a238873a17958080af018f08 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1080211ilc; Thu, 5 Nov 2020 23:05:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzkBLA45M/AhQpHYDHziUzMeFWrpSn5zp7itCI3GkC0I7vnZG0FDU8hF2X0Gx4RT6DVhFcV X-Received: by 2002:a17:906:5618:: with SMTP id f24mr671336ejq.381.1604646343879; Thu, 05 Nov 2020 23:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604646343; cv=none; d=google.com; s=arc-20160816; b=lCCEHWF7q5KGcNPt+g+6IVyhOXkV4D3nutUMVKXIqrGnUr51jWkuGbrEKU7f8xTboD zY0U3WJQCP8Q9iTJFTTANQEVVoAgRUTdakOHMOHAQXJA5PA0bkG1KVERduKiBMzwnsRj D2um317bg8Cso7B5EM2k84cj3E8P5jrfS1XkGwJQHYNhqJIz6w6ymCtQgFLn7n3pg48B tzKvjwJfP86tR1Eg9chyTnlTY0JogmdgRdbUb7N4+xK8BzqpxkWiKGA6Ep3bqS+sLKHO DjK/mbOUl6ZH6o5HHDUI4KlxOBNU4kQOw5EKXg9/r564C/uchVbpAZH0Hun1q7/0dPqP M3ew== 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=pxVky9l6SjSdLAcTA14Zb0ig0mPHGe9JAZ+xYlz+WWM=; b=Od9b75mj2raHBhpVk4UPx4nnq6dRw27ELr+ziq/xt+iCwZfaDjrQDO5EHip/P1mnFc vDL0Tf1ZBMT/bdQsJgCuubP/E3r/ytfKZt/r1b/VkzHVb6MtBdGQN7jx5bQHXkFxZC1N sPu2M5xelUAHy9GhZK6NIL1tMYotJUJbo2Cnsg6h/7Yk9xUQmnm4X++WjmAzF+0sm1x3 iYlO7I/17PvXteqVtQCGAWaaOLn7cfrtWuybUjN3r5CAfmy6Iq3ELSsgn3/NXjGWT1sM csRgQ/IZWJW03xa1ZNyBR3m4QHS4R5aYKlgr+v9o/7r90Ts7ev2danfoLDDm09pN8h41 /IHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mhYxA+hf; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-arm-msm-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qh16si211734ejb.677.2020.11.05.23.05.43; Thu, 05 Nov 2020 23:05:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-msm-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=mhYxA+hf; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1726522AbgKFHFl (ORCPT <rfc822;patch@linaro.org> + 15 others); Fri, 6 Nov 2020 02:05:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726543AbgKFHFk (ORCPT <rfc822;linux-arm-msm@vger.kernel.org>); Fri, 6 Nov 2020 02:05:40 -0500 Received: from mail-pl1-x643.google.com (mail-pl1-x643.google.com [IPv6:2607:f8b0:4864:20::643]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3778C0613D3 for <linux-arm-msm@vger.kernel.org>; Thu, 5 Nov 2020 23:05:40 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id b12so246245plr.4 for <linux-arm-msm@vger.kernel.org>; Thu, 05 Nov 2020 23:05:40 -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=pxVky9l6SjSdLAcTA14Zb0ig0mPHGe9JAZ+xYlz+WWM=; b=mhYxA+hfdYdKmPXf+5Uz0ENmGw87DnvuIRtIBfijjW125XoltnFPxPeJAjShhP1zZF CzHGGfPvrH1yEQCVgAcTfBZmHN3ABIvSHx1IaK5Trurbt0YMJtiPt0HhqXRbpPJ7pVmw Vj9iWoAHCCUyS23qBnzK518EtYvDXqzPRzD0KsDn1kPn9/XpFBg2Fz5UJAuSLVy7lRd7 d/ecLj2XoE46q4rsnj3OKtDW2ONjIFyjbc8J9B5IHqJvNzST0o4vuKdObU+KurINcgqS 34l1mY33qyM58jFdL+CPsZjlLQggsMs2cbeoy9a1GJsRw8pcgEnwd54lhRdiCdC1/vfa XVbg== 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=pxVky9l6SjSdLAcTA14Zb0ig0mPHGe9JAZ+xYlz+WWM=; b=L9AlmmImkDeW0YyLsQBpluZZnduJE+7AZur8e33Cp7KVIrmmqdOU9ZGnQqznyo4Tve nMfEyldRGAvl5ixcbggxXO1uOgtT040Qre380ZS1zDu0ztopJwWCmFTnqD4ZSCIgZa3s Bi3ux0o8AUyGOIJuXSbv/V2Zi/mqkOTKFK2aY726g/xDbXv9OSoBR1gavaIltI0PiRcG lae9eMcS8KS8Vp2VDs2mIgVYTY3v2bY3vp1MnbJGkOUAZ1YA3GfEAQMKGDIxogyRz49h o/i4ZA97x6HDe1t97pYrKWxQGdBlvn8qaDwVOZFX5lbBK0Sgu2sBVokmDgreK3vR/2xy 7bTw== X-Gm-Message-State: AOAM530gZj614oN+XwUxA/1Ijd+FL9Bi7TGwSi8+o/VrvtYjqoU/PYry Qkem0UW1h0jIqeHnkYuT/FmeLQ== X-Received: by 2002:a17:902:6ac1:b029:d6:c43e:a42d with SMTP id i1-20020a1709026ac1b02900d6c43ea42dmr719733plt.21.1604646340242; Thu, 05 Nov 2020 23:05:40 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id z17sm551372pga.85.2020.11.05.23.05.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Nov 2020 23:05:39 -0800 (PST) From: Viresh Kumar <viresh.kumar@linaro.org> To: Stanimir Varbanov <stanimir.varbanov@linaro.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <bjorn.andersson@linaro.org> Cc: Viresh Kumar <viresh.kumar@linaro.org>, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, Rafael Wysocki <rjw@rjwysocki.net>, Stephen Boyd <sboyd@kernel.org>, Nishanth Menon <nm@ti.com>, digetx@gmail.com, linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] media: venus: dev_pm_opp_put_*() accepts NULL argument Date: Fri, 6 Nov 2020 12:33:27 +0530 Message-Id: <1b1c2086f01a27f7da6e6512dd47d47d153f626d.1604646059.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: <cover.1604646059.git.viresh.kumar@linaro.org> References: <cover.1604646059.git.viresh.kumar@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <linux-arm-msm.vger.kernel.org> X-Mailing-List: linux-arm-msm@vger.kernel.org |
Series |
opp: Allow dev_pm_opp_put_*() APIs to accept NULL opp_table
|
expand
|
diff --git a/drivers/media/platform/qcom/venus/pm_helpers.c b/drivers/media/platform/qcom/venus/pm_helpers.c index 57877eacecf0..e1e9130288ad 100644 --- a/drivers/media/platform/qcom/venus/pm_helpers.c +++ b/drivers/media/platform/qcom/venus/pm_helpers.c @@ -898,8 +898,7 @@ static void core_put_v4(struct device *dev) if (core->has_opp_table) dev_pm_opp_of_remove_table(dev); - if (core->opp_table) - dev_pm_opp_put_clkname(core->opp_table); + dev_pm_opp_put_clkname(core->opp_table); }
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 <viresh.kumar@linaro.org> --- drivers/media/platform/qcom/venus/pm_helpers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af