From patchwork Wed Sep 3 10:52:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 36552 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f72.google.com (mail-qg0-f72.google.com [209.85.192.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E9D8E2039B for ; Wed, 3 Sep 2014 10:53:06 +0000 (UTC) Received: by mail-qg0-f72.google.com with SMTP id j5sf25382422qga.7 for ; Wed, 03 Sep 2014 03:53:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=Q6n0HgZF4oAD591bK4aRFZPB0ImgVl40f+jS5Ew6Z/o=; b=e1fxtswXktPuKADrXH4MPxFBJ5Rfme4Medrkq9ByAPU7xZ8Wxf6bwIJIMO79n+sxK8 +twWcS1RlLAU8P5gJQGgU3ngagPT+vOnTQVv92Uwkula41/Jy9bF8tTglvlBs39MEq8a wmbs9TMN+D4HvZwHcuDYImEx26sYbN2NL076iXZ0ZoSyIj2TQ51w+UZWGvQr6AJ/BHfk Krouqnvr1okfA1tLbk5MBtdw4kaZ+wRe8OOxZCqjwAOqJ5NCUxFaHzJyR8TSGxS5re6t I78+Pq32dvBgLnmXkKU9Yo/CZCXcnptvUJVVtbuzJlE3+wKdJNRQsHl0cjwvc7fdtD36 BC4Q== X-Gm-Message-State: ALoCoQnx5W/TMICTjSmzs1/gwAbtf0lcTPRmRHMwU3PIdMkq7kVlMQSBvxYA3046fDvvcwtMvrDV X-Received: by 10.236.159.198 with SMTP id s46mr20703937yhk.17.1409741586718; Wed, 03 Sep 2014 03:53:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.40.47 with SMTP id w44ls2707135qgw.95.gmail; Wed, 03 Sep 2014 03:53:06 -0700 (PDT) X-Received: by 10.52.162.74 with SMTP id xy10mr171849vdb.51.1409741586651; Wed, 03 Sep 2014 03:53:06 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id tp5si3412030vcb.100.2014.09.03.03.53.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:06 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so8576460vcb.14 for ; Wed, 03 Sep 2014 03:53:06 -0700 (PDT) X-Received: by 10.220.97.138 with SMTP id l10mr34732112vcn.25.1409741586591; Wed, 03 Sep 2014 03:53:06 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp660735vcb; Wed, 3 Sep 2014 03:53:06 -0700 (PDT) X-Received: by 10.194.94.165 with SMTP id dd5mr22001874wjb.75.1409741585752; Wed, 03 Sep 2014 03:53:05 -0700 (PDT) Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by mx.google.com with ESMTPS id bj6si9979133wjc.16.2014.09.03.03.53.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Sep 2014 03:53:05 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.212.174 as permitted sender) client-ip=209.85.212.174; Received: by mail-wi0-f174.google.com with SMTP id d1so642401wiv.13 for ; Wed, 03 Sep 2014 03:53:05 -0700 (PDT) X-Received: by 10.180.73.139 with SMTP id l11mr33962205wiv.30.1409741585168; Wed, 03 Sep 2014 03:53:05 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id j7sm3968190wia.9.2014.09.03.03.53.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Sep 2014 03:53:04 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Daniel Lezcano , Tomasz Figa , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson Subject: [PATCH 07/15] PM / Domains: Remove redundant check for CONFIG_PM Date: Wed, 3 Sep 2014 12:52:23 +0200 Message-Id: <1409741551-16437-8-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> References: <1409741551-16437-1-git-send-email-ulf.hansson@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.169 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , CONFIG_PM_GENERIC_DOMAINS depends on CONFIG_PM, thus there are no need to check explicity for it. Signed-off-by: Ulf Hansson --- drivers/base/power/domain.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 4298a2b..b910d0f 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -66,8 +66,6 @@ static struct generic_pm_domain *pm_genpd_lookup_name(const char *domain_name) return genpd; } -#ifdef CONFIG_PM - struct generic_pm_domain *dev_to_genpd(struct device *dev) { if (IS_ERR_OR_NULL(dev->pm_domain)) @@ -281,8 +279,6 @@ int pm_genpd_name_poweron(const char *domain_name) return genpd ? pm_genpd_poweron(genpd) : -EINVAL; } -#endif /* CONFIG_PM */ - #ifdef CONFIG_PM_RUNTIME static int genpd_start_dev_no_timing(struct generic_pm_domain *genpd,