From patchwork Thu Sep 4 13:52:33 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 4845871 Return-Path: X-Original-To: patchwork-linux-acpi@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 4F4AF9F2EC for ; Thu, 4 Sep 2014 13:53:49 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2094C2034A for ; Thu, 4 Sep 2014 13:53:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C9EB202FF for ; Thu, 4 Sep 2014 13:53:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753140AbaIDNxI (ORCPT ); Thu, 4 Sep 2014 09:53:08 -0400 Received: from mail-la0-f53.google.com ([209.85.215.53]:56132 "EHLO mail-la0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753111AbaIDNxE (ORCPT ); Thu, 4 Sep 2014 09:53:04 -0400 Received: by mail-la0-f53.google.com with SMTP id q1so3327056lam.12 for ; Thu, 04 Sep 2014 06:53:02 -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=uqw5etdQEf5peppxJf7qkalT5Q4eKSeoWgJru5XVOCQ=; b=lUs1DqwJhfaJAXpjVCZ7hUHai0c60wcMzhxicEQ7uKTxhiJ4i/Cd3rFJdIvaKt8kNI LLCwKrLKQo9yRIriC4Jh1LKCTXU9PdigHeUHXVRCRuLOpPzEsNs+pMPL5k/27T8SHeeV kh7JXZBIpVQqId2MhJgrei0bNOam+JB/RbBTA3Du81ZIMSmAbRrNxK4J/Q0qDwojpzI1 RJgP1/xNlzXjcRdofVenQ7ZVFIRSF3rSB839PBqTPCS0FJC2nB70ab//+Bk68ZE4f5Rb T+orwkAbBUnxQS9ZOaq7Bq3ECqhB6JITC0IMkVZbHDjGNYHwjjiaPmoswZqPjWUr5Unn ExIg== X-Gm-Message-State: ALoCoQlVSTsZz7CDVwZmdz0QC+myJ5xzNMtAGZhGFo05hY96R6/rxRosaD9z7eT1NZR4rE6+QEcN X-Received: by 10.112.62.229 with SMTP id b5mr4502045lbs.60.1409838782879; Thu, 04 Sep 2014 06:53:02 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id p3sm2085260lap.14.2014.09.04.06.53.00 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Sep 2014 06:53:02 -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 , Ulf Hansson , linux-mmc@vger.kernel.org Subject: [PATCH v3 6/9] mmc: sdio: Convert to dev_pm_domain_attach|detach() Date: Thu, 4 Sep 2014 15:52:33 +0200 Message-Id: <1409838756-31963-7-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1409838756-31963-1-git-send-email-ulf.hansson@linaro.org> References: <1409838756-31963-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Previously only the ACPI PM domain was supported by the sdio bus. Let's convert to the common attach/detach functions for PM domains, which currently means we are extending the support to include the generic PM domain as well. Cc: linux-mmc@vger.kernel.org Signed-off-by: Ulf Hansson --- drivers/mmc/core/sdio_bus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index 4fa8fef9..1df0fc6 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -315,7 +315,7 @@ int sdio_add_func(struct sdio_func *func) ret = device_add(&func->dev); if (ret == 0) { sdio_func_set_present(func); - acpi_dev_pm_attach(&func->dev, false); + dev_pm_domain_attach(&func->dev, false); } return ret; @@ -332,7 +332,7 @@ void sdio_remove_func(struct sdio_func *func) if (!sdio_func_present(func)) return; - acpi_dev_pm_detach(&func->dev, false); + dev_pm_domain_detach(&func->dev, false); device_del(&func->dev); put_device(&func->dev); }