From patchwork Fri Sep 19 18:27:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 4939581 Return-Path: X-Original-To: patchwork-linux-arm@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 DBC439F2EC for ; Fri, 19 Sep 2014 18:30:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A763720200 for ; Fri, 19 Sep 2014 18:30:24 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 72DA120204 for ; Fri, 19 Sep 2014 18:30:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XV2v8-0008Mh-O3; Fri, 19 Sep 2014 18:28:38 +0000 Received: from mail-pd0-f171.google.com ([209.85.192.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XV2uo-0007yA-LN for linux-arm-kernel@lists.infradead.org; Fri, 19 Sep 2014 18:28:19 +0000 Received: by mail-pd0-f171.google.com with SMTP id y13so430198pdi.2 for ; Fri, 19 Sep 2014 11:27:57 -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=IwkUh0rS9SBulBbZrFu2n2BpAJDRnF9wM92ZZkOVII8=; b=HipE53p2uv5eAEWTudPtsstnNCYt4qPIlKqgrd5PxNMsLKesvJfJacstvSLetlfpaT sDYrvfxM6pW2O5l6C3JjA1S6TepiVizT/Cg9OGmxQfp+KJCj2bYVNyOWutNX/kXVH3LB 7MoooGre/YmcO613M2hwAwsWp2HAVgvocQ+j783h8csBQyR3ixu3AsO5ip8fdFQzRFrw 6r2pDpfni3iPN0xaHnKOVr9EuG2Rlu6REgkylMBJSyH6vlddU39hQr3aYU1WogzpocAu ohYV7SikKf3ZkY3P0V1TACrxq/ZhRpjTRDKFAG12hAtZXTM0TfaWXk7qiK4dLxhoiULp Q+GA== X-Gm-Message-State: ALoCoQmmnsYOikBticedMA6kefD8oK9ff67oKWBMtQXNCs9zhuDmF3A0S39a3jNdcGiSjgkLNRS0 X-Received: by 10.70.48.5 with SMTP id h5mr2247878pdn.125.1411151277660; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) Received: from localhost.localdomain ([38.126.120.10]) by mx.google.com with ESMTPSA id ki1sm2495071pdb.59.2014.09.19.11.27.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Sep 2014 11:27:57 -0700 (PDT) From: Ulf Hansson To: "Rafael J. Wysocki" , Len Brown , Pavel Machek , Greg Kroah-Hartman , linux-pm@vger.kernel.org Subject: [PATCH v5 02/11] ACPI / PM: Assign the ->detach() callback when attaching the PM domain Date: Fri, 19 Sep 2014 20:27:35 +0200 Message-Id: <1411151264-16245-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411151264-16245-1-git-send-email-ulf.hansson@linaro.org> References: <1411151264-16245-1-git-send-email-ulf.hansson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140919_112818_742520_6974F18C X-CRM114-Status: GOOD ( 11.52 ) X-Spam-Score: -1.0 (-) Cc: devicetree@vger.kernel.org, Ulf Hansson , Kevin Hilman , Russell King , Philipp Zabel , Geert Uytterhoeven , Wolfram Sang , Stephen Boyd , Linus Walleij , Daniel Lezcano , Magnus Damm , Tomasz Figa , Chris Ball , linux-acpi@vger.kernel.org, Simon Horman , Alan Stern , Mark Brown , Ben Dooks , Kukjin Kim , Dmitry Torokhov , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 As as preparation to simplify the detachment of devices from their PM domains, we assign the ->detach() callback to genpd_dev_pm_detach(). Signed-off-by: Ulf Hansson --- drivers/acpi/device_pm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index 67075f8..eec5ed5 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c @@ -1072,6 +1072,8 @@ int acpi_dev_pm_attach(struct device *dev, bool power_on) acpi_dev_pm_full_power(adev); acpi_device_wakeup(adev, ACPI_STATE_S0, false); } + + dev->pm_domain->detach = acpi_dev_pm_detach; return 0; } EXPORT_SYMBOL_GPL(acpi_dev_pm_attach);