Message ID | 1411151264-16245-3-git-send-email-ulf.hansson@linaro.org |
---|---|
State | Accepted |
Commit | 86f1e15f5646b4855bd77025c950239650c4843e |
Headers | show
Return-Path: <patchwork-forward+bncBDF57NG2XIHRBMPL6GQAKGQERIXM2KQ@linaro.org> 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 <linaro@patches.linaro.org>; Fri, 19 Sep 2014 18:28:01 +0000 (UTC) Received: by mail-wg0-f69.google.com with SMTP id l18sf71146wgh.0 for <linaro@patches.linaro.org>; 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 <patchwork-forward@linaro.org> (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 <patchwork-forward@linaro.org>; 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 <patches@linaro.org> (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 <patches@linaro.org>; 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 <multiple recipients> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Sep 2014 11:27:57 -0700 (PDT) From: Ulf Hansson <ulf.hansson@linaro.org> To: "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <len.brown@intel.com>, Pavel Machek <pavel@ucw.cz>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-pm@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, Geert Uytterhoeven <geert+renesas@glider.be>, Kevin Hilman <khilman@linaro.org>, Alan Stern <stern@rowland.harvard.edu>, Daniel Lezcano <daniel.lezcano@linaro.org>, Tomasz Figa <tomasz.figa@gmail.com>, devicetree@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>, Simon Horman <horms@verge.net.au>, Magnus Damm <magnus.damm@gmail.com>, Ben Dooks <ben-linux@fluff.org>, Kukjin Kim <kgene.kim@samsung.com>, Stephen Boyd <sboyd@codeaurora.org>, Philipp Zabel <philipp.zabel@gmail.com>, Mark Brown <broonie@kernel.org>, Wolfram Sang <wsa@the-dreams.de>, Chris Ball <chris@printf.net>, Russell King <linux@arm.linux.org.uk>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Ulf Hansson <ulf.hansson@linaro.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-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: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
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);
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 <ulf.hansson@linaro.org> --- drivers/acpi/device_pm.c | 2 ++ 1 file changed, 2 insertions(+)