Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1063015pxb; Thu, 5 Nov 2020 23:07:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJw9jJSb+W14nSpvQeYK/TQKxXndKbTTWvwcIROGVW6wUEVgyvVIObhXeB4SpMhNT2iAHTNg X-Received: by 2002:a50:f0d4:: with SMTP id a20mr628159edm.303.1604646470448; Thu, 05 Nov 2020 23:07:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604646470; cv=none; d=google.com; s=arc-20160816; b=vRBPW4hpbwupph8huaUPKy4XlCzBHQ6rXC7xHqM+vOsAkhidgzfYCLN5XNeCizm00y DO9U9AQ/jphK4CiaB8l9NbZgpVASpPwDNlAqF9cevHEd2ktKuICY8i4oklddpMXZBfmv 2uDOuGM/6icJbOzOu7r+oiRA+fAco2JU4HAOjOjnoB251dx/uVVJ3TBi/JdOb/1qQAKk /WIKsLGwhyH7CLwDneQ3zJbasNcx+LjE0dI+lI+Bnd8Dp4kue/8rFtHsdLL7VNmPeeul wBCOqAvH/ZsJVzCbmqyyO5o4+Ix63KE59lr5s9C83Dp4dTbUL8opiiBwNf/iWMzxlZAD Kpxw== 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=TLoAqTQqH8J01XZCBMG+JZIWltYC6rP1jD327ZB8N1ZM25I6L5bp/oCz9DTtkupcZa 7eICJiNb88cxSHRC8UkDu27Q+mjqc8OqeUA+k1v3YXHBkIdz3mCoXKOGR4R0WSLryQT0 TTvh7OLaKOvPeM3CKp5m/CvemXxH/gpTwKIxxUCjlMnpsnrCELGeLeamWWMo//LWi9He Ou36h6PjVIH5U7h6aK73G8cFOMD8fc7L2iDKzp6MbP3u4hDPgl0aHW4qMLxCRJf3vgcu FPCQuTmyx0R3V8bUnojaEOgC3AdPuCM67fENgePmBKo6L03UDp8pNiUuAXfBSVzE4ver ElRw== 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-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 i7si368422edj.303.2020.11.05.23.07.28; Thu, 05 Nov 2020 23:07:50 -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=mhYxA+hf; 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 S1726553AbgKFHFn (ORCPT + 99 others); Fri, 6 Nov 2020 02:05:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726546AbgKFHFl (ORCPT ); Fri, 6 Nov 2020 02:05:41 -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 A3718C0613D2 for ; Thu, 5 Nov 2020 23:05:40 -0800 (PST) Received: by mail-pl1-x643.google.com with SMTP id x23so240448plr.6 for ; 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=Q2xTgJS/F/3hrjFpyOz78uAZQNUDi5RTZLFN56W2G1798xpRBlZJn79Vj/xmcYirzN 6daF/UKfHKqJKsuLPknzhWOrDGgN6dK7l+XM6C4jLt9j87GGOjyn9lYg5p6DkdnguA/X 8DGFAtK+8MatrSSL+1JlJeybh834SorItlwSzUUYhNQce2VNOenJpOn0EFxUYMjsXtud elUKva8MTVwBaGYYPOvUbDRAvfhBvWyHdouBxGNukT65Hc1mgM3qV+FbNDMoct84BEaV YcIRzMQluBbAIAhmsrZ7M/1zKIz47bEsh5G4I0lKhWKH7UGvilJRKIfWGiX7pypReLBn KUFg== X-Gm-Message-State: AOAM532twhOPbIdeeNePtUCzyLBzt5dDJuU0a/Rt3onIRkNzXz5txdmw PGLFvMEe62GAAfyc4kcJhiww0w== 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 To: Stanimir Varbanov , Andy Gross , Bjorn Andersson Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , Stephen Boyd , Nishanth Menon , 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: 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/media/platform/qcom/venus/pm_helpers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.25.0.rc1.19.g042ed3e048af