From patchwork Tue Jun 10 10:51: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: 31631 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id DBF6820675 for ; Tue, 10 Jun 2014 10:52:29 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id uz6sf12821675obc.4 for ; Tue, 10 Jun 2014 03:52:29 -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=Ik5E9ZK1pz3SOHQG/Q9dOQj/Uwy7YtW7JVdV/NUOJAI=; b=iBxadRleDD3HzX6UjImOUrltnXziqop45l6+cdGgncyNQzkgBglnbICbzfEltg3ZtL w2Dk0Syq/AuaFcxzKPlrmDEx5c9O3KtljcudK5202HTpi/Gsl26FUQJKJltSFaC+h9b1 vn+2otpDDbyIMpkKvLWrMGNUsg0UtcJkV/ZhalDr2UryiTlGATaZlWc8mHYJe3qjGGFJ OGC4BsrEFUXonDq0stpPof6T1iK4DUJVmifhO+zvS7fwIfXFicI98FrXFsFkxMv5lw8W lHYDvuq+psKB1Zx0fR57fQ4G243eJsqqkzxf4IU8iudLxKOC2Z101nAbYdoIOB81BFq+ yncA== X-Gm-Message-State: ALoCoQlFxnsEiLW0WzKMZPj8WfbP5623Y9GPbjWFIXeFMy+JIXX7CO2bYyRWDIh/dD7FknyVAlHj X-Received: by 10.182.213.106 with SMTP id nr10mr6687882obc.30.1402397549542; Tue, 10 Jun 2014 03:52:29 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.48.112 with SMTP id n103ls2041505qga.86.gmail; Tue, 10 Jun 2014 03:52:29 -0700 (PDT) X-Received: by 10.58.160.164 with SMTP id xl4mr9825336veb.38.1402397549398; Tue, 10 Jun 2014 03:52:29 -0700 (PDT) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by mx.google.com with ESMTPS id i8si11694290vco.4.2014.06.10.03.52.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:29 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.173 as permitted sender) client-ip=209.85.128.173; Received: by mail-ve0-f173.google.com with SMTP id db11so2522501veb.18 for ; Tue, 10 Jun 2014 03:52:29 -0700 (PDT) X-Received: by 10.58.195.172 with SMTP id if12mr6947959vec.12.1402397549310; Tue, 10 Jun 2014 03:52:29 -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.54.6 with SMTP id vs6csp215534vcb; Tue, 10 Jun 2014 03:52:28 -0700 (PDT) X-Received: by 10.112.146.35 with SMTP id sz3mr683698lbb.85.1402397548334; Tue, 10 Jun 2014 03:52:28 -0700 (PDT) Received: from mail-lb0-f174.google.com (mail-lb0-f174.google.com [209.85.217.174]) by mx.google.com with ESMTPS id p10si21099883lap.13.2014.06.10.03.52.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:28 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.174 as permitted sender) client-ip=209.85.217.174; Received: by mail-lb0-f174.google.com with SMTP id n15so3768547lbi.5 for ; Tue, 10 Jun 2014 03:52:27 -0700 (PDT) X-Received: by 10.152.43.8 with SMTP id s8mr640411lal.81.1402397547736; Tue, 10 Jun 2014 03:52:27 -0700 (PDT) Received: from linaro-ulf.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id y6sm18329925laj.17.2014.06.10.03.52.25 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 10 Jun 2014 03:52:27 -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, Kevin Hilman , Alan Stern , Greg Kroah-Hartman , Daniel Lezcano , Tomasz Figa , devicetree@vger.kernel.org, Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Ulf Hansson Subject: [PATCH 10/24] PM / Domains: Remove redundant check for CONFIG_PM Date: Tue, 10 Jun 2014 12:51:23 +0200 Message-Id: <1402397497-26737-11-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1402397497-26737-1-git-send-email-ulf.hansson@linaro.org> References: <1402397497-26737-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.128.173 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 a2ebc77..0362360 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -67,8 +67,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)) @@ -282,8 +280,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,