[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1380529104-25818-1-git-send-email-ulf.hansson@linaro.org>
Date: Mon, 30 Sep 2013 10:18:24 +0200
From: Ulf Hansson <ulf.hansson@...aro.org>
To: linux-kernel@...r.kernel.org, linux-mmc@...r.kernel.org,
Chris Ball <cjb@...top.org>
Cc: Ulf Hansson <ulf.hansson@...aro.org>,
Tony Olech <tony.olech@...ndigitalsystems.com>,
linux-usb@...r.kernel.org, Alan Stern <stern@...land.harvard.edu>
Subject: [PATCH] mmc: vub300: Move away from using deprecated APIs
Suspend and resume of cards are handled by the protocol layer and
consequently the mmc_suspend|resume_host APIs are marked as deprecated.
This means we can simplify the suspend|resume callbacks by removing the
use of the deprecated APIs.
Cc: Tony Olech <tony.olech@...ndigitalsystems.com>
Cc: linux-usb@...r.kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@...aro.org>
Cc: Alan Stern <stern@...land.harvard.edu>
---
drivers/mmc/host/vub300.c | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)
diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c
index e9028ad..4262296 100644
--- a/drivers/mmc/host/vub300.c
+++ b/drivers/mmc/host/vub300.c
@@ -2392,26 +2392,12 @@ static void vub300_disconnect(struct usb_interface *interface)
#ifdef CONFIG_PM
static int vub300_suspend(struct usb_interface *intf, pm_message_t message)
{
- struct vub300_mmc_host *vub300 = usb_get_intfdata(intf);
- if (!vub300 || !vub300->mmc) {
- return 0;
- } else {
- struct mmc_host *mmc = vub300->mmc;
- mmc_suspend_host(mmc);
- return 0;
- }
+ return 0;
}
static int vub300_resume(struct usb_interface *intf)
{
- struct vub300_mmc_host *vub300 = usb_get_intfdata(intf);
- if (!vub300 || !vub300->mmc) {
- return 0;
- } else {
- struct mmc_host *mmc = vub300->mmc;
- mmc_resume_host(mmc);
- return 0;
- }
+ return 0;
}
#else
#define vub300_suspend NULL
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists