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: 37647 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 10FE020293 for ; Fri, 19 Sep 2014 18:28:01 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id l18sf71146wgh.0 for ; Fri, 19 Sep 2014 11:28:01 -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=IwkUh0rS9SBulBbZrFu2n2BpAJDRnF9wM92ZZkOVII8=; b=EHewA0dFUcbb0Lm7NUbuIL3m4OhwufehcHxAvLAz8q4Sdm5VLMC/9KU5LMa5ZbB0RL eiD/Dc/MdkheN6Ny1teWACWkydHIQgaetf65jy+AJHHepv0y1M4Shs4B+hALN6qbvHvw FtwRTIWpb5WfABfQGDzo7B9xqUkSfEnDHrKr8cmyaqe+sAG69DWataXizob5buV8vCZ+ rha7PqxuYlcUUJB2f9hfRGgdsTevupeU5Q113/YfrtPDjcUW+BW8MYPa47LrHc7eegjZ MwxeKLTpPQOWgPJpCrGDI1T6uqvWS9Uoi9Ofh8KS/yTNROmPmHFkgKmoLo3yq6N8WOE0 lRsg== X-Gm-Message-State: ALoCoQn63Lrvr5G7fSuVJpNNBpcMeGJfEFeATDAtJd+sHwLAjwHm+mZ08yP8nIfphy4qcaCw4PkK X-Received: by 10.180.12.148 with SMTP id y20mr25106wib.7.1411151281194; Fri, 19 Sep 2014 11:28:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.183.201 with SMTP id eo9ls395270lac.20.gmail; Fri, 19 Sep 2014 11:28:00 -0700 (PDT) X-Received: by 10.152.23.69 with SMTP id k5mr8672649laf.70.1411151280677; Fri, 19 Sep 2014 11:28:00 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) by mx.google.com with ESMTPS id v17si3604888lbd.85.2014.09.19.11.28.00 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 11:28:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by mail-la0-f44.google.com with SMTP id q1so3716873lam.3 for ; Fri, 19 Sep 2014 11:28:00 -0700 (PDT) X-Received: by 10.112.163.103 with SMTP id yh7mr8010185lbb.73.1411151280571; Fri, 19 Sep 2014 11:28:00 -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.112.130.169 with SMTP id of9csp989461lbb; Fri, 19 Sep 2014 11:27:59 -0700 (PDT) X-Received: by 10.68.244.2 with SMTP id xc2mr2772082pbc.51.1411151278346; Fri, 19 Sep 2014 11:27:58 -0700 (PDT) Received: from mail-pd0-f179.google.com (mail-pd0-f179.google.com [209.85.192.179]) by mx.google.com with ESMTPS id gg3si4347721pbc.4.2014.09.19.11.27.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 19 Sep 2014 11:27:58 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.192.179 as permitted sender) client-ip=209.85.192.179; Received: by mail-pd0-f179.google.com with SMTP id ft15so430599pdb.10 for ; Fri, 19 Sep 2014 11:27:57 -0700 (PDT) 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 Cc: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Alan Stern , Daniel Lezcano , Tomasz Figa , devicetree@vger.kernel.org, Linus Walleij , Simon Horman , Magnus Damm , Ben Dooks , Kukjin Kim , Stephen Boyd , Philipp Zabel , Mark Brown , Wolfram Sang , Chris Ball , Russell King , Dmitry Torokhov , Ulf Hansson 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-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.215.44 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: , 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);