From patchwork Thu Aug 27 10:05:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 248449 Delivered-To: patch@linaro.org Received: by 2002:a17:906:6447:0:0:0:0 with SMTP id l7csp207551ejn; Thu, 27 Aug 2020 03:05:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8tU9qwJJFV7eY6Zl71Z8L6447jVqsxQkerjz3MiVV0wJ7ZQxK9GDQPBCI4W3fdwQrly1U X-Received: by 2002:a17:906:6055:: with SMTP id p21mr21051911ejj.173.1598522731411; Thu, 27 Aug 2020 03:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598522731; cv=none; d=google.com; s=arc-20160816; b=BqGxvpTxURwZWmZIIA9F+wCXRJkrQRXla/LNN4o6mPBprtP8DkTVZliHlG1ueTRggq gWtmiScx3HB0x4528sn2R7GxPOV8hPD/c2WQyJx1qAjDYFDr52L/5xbOpmue/q3sDSFe qnoym9ebPKU5JeFcsgRPpgr6ZaMRcoyEggQ3REtP/SbszmOfid3EKFtyd2fvlwtADQkK 5lxIb+pnv6eV9Nq6z9KjadTc6jbHs38vdj+o6NJ/OiUarPv46uc8eO0oF2mWIEuWWbOY YCgVCyB/fWcOomc8e51n/DyVsBm8V/VjAStEYcd52j+S0ufSGe1F56+3kYKZHm4fQa39 PVxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=MY9vWqi8io8Q/KjFZpL5UnBPSsLhfZfobXaFG+SgOqk=; b=x53lKaxQSGvXfE6MqYRxx7mBEYkgtsKXpP5vHLCmjFrEdJ6y29Dt5CFueZmiITJP77 111MWU7ui6yvjCZmYfGfALXkq9LVJPCCMYwC5rLGrsFa06KMVWArSNRIeiJNgd4PM3XD LUsNMAtrb/w7GFY6TbRBhvGcfeM4IZ908/pCcOee4UvZluMXEWSDa9ZmPEZhyvQ825S0 nls9Kv01xZDDF5KuTswR9KtCKb2QHV/k8aqLZoCbDiIu7v7DQblPGpSbU0KjA+YN4nJ0 9VGHDvlhXK099lggCw9O3uKtym+LfK9NweQKNul+s5Kakh8UakYmcBQfCwl0/oeW6OiU BoJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=zO5xaZyH; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 w23si1122414edu.32.2020.08.27.03.05.31; Thu, 27 Aug 2020 03:05:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-pm-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=zO5xaZyH; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1728409AbgH0KFV (ORCPT + 10 others); Thu, 27 Aug 2020 06:05:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728384AbgH0KFU (ORCPT ); Thu, 27 Aug 2020 06:05:20 -0400 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 E76E6C061264 for ; Thu, 27 Aug 2020 03:05:19 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id p11so3106540pfn.11 for ; Thu, 27 Aug 2020 03:05:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=MY9vWqi8io8Q/KjFZpL5UnBPSsLhfZfobXaFG+SgOqk=; b=zO5xaZyH5NBB+g4FkyMZLdJPv05aiY5r0BLK9s2kZG019uiBNqS4nZLXOUc3mRpPI2 5FrqdwuJl2R/C8CN2uQD3HjvsFD5uHOwL/StxxRfaPssdEomiavjQqsuqN6uv1uxrHC4 wr3MU2wmm+AUJupiwa4JH4lkULPVfIDAN28ujoeEMVPBQ5T+5Px6ffPlLZjrwbSQfLQb lT+8MrZAHcHmkH8EDl51eBhkxPLl/ZOhyZIQ0dygBVEWKmOBkUFMTg250ikuM6GVsqm1 nrGVdfiQM0NN+XA27rxEbfTXhJ/WY8fYlI9irkBP7FR0KwmMwPjsAgigSZp3xv/2GV3+ 1z8g== 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:mime-version :content-transfer-encoding; bh=MY9vWqi8io8Q/KjFZpL5UnBPSsLhfZfobXaFG+SgOqk=; b=rV10VeX2J1kuLGG4p4bCCZNQMCh8nTgr30eEC5zfe/PQ9DaG298LFiHRo7yy+DPEtJ Pfiutw0quWW2PBCfaXnI9I2JN+eoROnNOiqT87yeZjc/yTm4yynj5fu/SxOWKd8CD1tP I1WBp5GyhOQtKu2qNXbEIXhnO9eKFDChtizl10Rdc5LsdHBNvBpbJkW2YdQtmtC2R9Qf F2XmmOk3daFrMinjeBYXtg0qu20g/NGcT5hJFrUc0k0/C/ESR1nHXj3CZQfLDt1PcN3H w7RYUBfMN6PbEVQf68hko4uCEiEIkH05cVjGzLWHQR7kYaPOMLbmT7jr5lI8muNUZaza ZJAg== X-Gm-Message-State: AOAM5339Hik7QEICLF78dgq8y5C++EUL5dhTt3jbkzyn0VkzjLdxz+iz S0WB7NazFGpj7mxP4Av9Yk2yoA== X-Received: by 2002:a65:4847:: with SMTP id i7mr13871837pgs.385.1598522719424; Thu, 27 Aug 2020 03:05:19 -0700 (PDT) Received: from localhost ([122.167.135.199]) by smtp.gmail.com with ESMTPSA id lt23sm1751841pjb.52.2020.08.27.03.05.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Aug 2020 03:05:18 -0700 (PDT) From: Viresh Kumar To: Viresh Kumar , Nishanth Menon , Stephen Boyd Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rafael Wysocki , linux-kernel@vger.kernel.org Subject: [PATCH] opp: Drop unnecessary check frmo dev_pm_opp_attach_genpd() Date: Thu, 27 Aug 2020 15:35:15 +0530 Message-Id: <88c8522b556d15bd44b8388d47cf25ac6f06b057.1598522635.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Since commit c0ab9e0812da ("opp: Allocate genpd_virt_devs from dev_pm_opp_attach_genpd()"), the allocation of the virtual devices is moved to dev_pm_opp_attach_genpd() and this check isn't required anymore as it will always fail. Drop it. Signed-off-by: Viresh Kumar --- drivers/opp/core.c | 6 ------ 1 file changed, 6 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/drivers/opp/core.c b/drivers/opp/core.c index 8b3c3986f589..000d0fcb4680 100644 --- a/drivers/opp/core.c +++ b/drivers/opp/core.c @@ -2031,12 +2031,6 @@ struct opp_table *dev_pm_opp_attach_genpd(struct device *dev, goto err; } - if (opp_table->genpd_virt_devs[index]) { - dev_err(dev, "Genpd virtual device already set %s\n", - *name); - goto err; - } - virt_dev = dev_pm_domain_attach_by_name(dev, *name); if (IS_ERR(virt_dev)) { ret = PTR_ERR(virt_dev);