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: 4832761 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8DA099F32E for ; Wed, 3 Sep 2014 10:53:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C9527202E6 for ; Wed, 3 Sep 2014 10:53:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DFB3D202EB for ; Wed, 3 Sep 2014 10:53:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756201AbaICKxK (ORCPT ); Wed, 3 Sep 2014 06:53:10 -0400 Received: from mail-wg0-f45.google.com ([74.125.82.45]:40369 "EHLO mail-wg0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756180AbaICKxH (ORCPT ); Wed, 3 Sep 2014 06:53:07 -0400 Received: by mail-wg0-f45.google.com with SMTP id k14so8145132wgh.28 for ; Wed, 03 Sep 2014 03:53:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Q6n0HgZF4oAD591bK4aRFZPB0ImgVl40f+jS5Ew6Z/o=; b=RCwBwN8bWMzWM4Bt70m/up8AaZZEKUnTsGsWpVVnR5YfGz0OIQxI7Yuu56Qv4vKulF oY8uJJJ7CfI4FCvkKC435xCveB2AFBpB4Xvm00OVxMkoMmpcVxzU39KNMQ1yarcdfNVH +IfFNepEWAWFOpkNunm6CkXrpdzSj4ivQ0kYkbFzUASWb4zN0DBbhsjYE5Lb0jnEp6n8 Qbji3rZmkKo/FUXlRNTf6sF0MVNllEm812ephrKahRjWnkOGua3Lu5fGp2fboN+Yn2iX aEOGqBS/0VYBzU7c9PRjC2uWYdBVhrAEdv8GzTliBaHMRe1/ClY6lwJXIulXIbzl8uXG gcFA== X-Gm-Message-State: ALoCoQmSVK0fPEEBYt0sHgb/JZmoXh8G4ALs4AJFzj1Ug44p3C8zNpJdCFBeMdjlIc7FkwSU1/xX 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> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-8.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,