From patchwork Mon Sep 30 08:18:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 20699 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id B49E625E05 for ; Mon, 30 Sep 2013 08:19:06 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf4812944qec.0 for ; Mon, 30 Sep 2013 01:19:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=MOc/Kr0e/S/EM4uIhxde2EBcyueHdgddUMMQjnLEVyg=; b=FSrsHzOv1H3AgxS5I3JvCVoRF6p3KfLDJhhGg+d4WerSqK1fJDvGfYEekSvA09e/kl 29+h0n0sOXdhMsygpfKZhAHdIhepChLkJxgFfENwA0T/chMjTrZ80P8QoyNK4EW7HwqF 1Ls3oV6fb4wyxzqKPlAXcZNdf4+d/uRO/aN/209rsZ40n5cmWBaWZnUaok2xjex9ZBsy VvBHfBo/U2Vhb4xf3x3OHdxBFsMQcw7W/arEwaN3OARd16lnIQuEUHykA8vzKXinUULE d84kN1krTdgoSY+3EXtxOcNfD79ljIBxuvec9f8/4YPGpFj32eFlViQBr266PKIHsGmJ 0hbw== X-Received: by 10.236.51.170 with SMTP id b30mr3038403yhc.45.1380529146120; Mon, 30 Sep 2013 01:19:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.58.244 with SMTP id u20ls1917497qeq.74.gmail; Mon, 30 Sep 2013 01:19:06 -0700 (PDT) X-Received: by 10.52.120.78 with SMTP id la14mr18188833vdb.9.1380529146026; Mon, 30 Sep 2013 01:19:06 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id op1si5472690vcb.42.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Sep 2013 01:19:06 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id ib11so3656238vcb.0 for ; Mon, 30 Sep 2013 01:18:36 -0700 (PDT) X-Gm-Message-State: ALoCoQlnh6fFQzlRHhBSFd2oPWsxGBM1ZsFFDzNbh9c80kVY3Sv+JKF8HEgVbqYAZ9TIlgnNbVL9 X-Received: by 10.52.103.35 with SMTP id ft3mr18147522vdb.5.1380529115918; Mon, 30 Sep 2013 01:18:35 -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.220.174.196 with SMTP id u4csp91394vcz; Mon, 30 Sep 2013 01:18:35 -0700 (PDT) X-Received: by 10.15.102.71 with SMTP id bq47mr1283670eeb.66.1380529114552; Mon, 30 Sep 2013 01:18:34 -0700 (PDT) Received: from mail-ea0-f172.google.com (mail-ea0-f172.google.com [209.85.215.172]) by mx.google.com with ESMTPS id 7si16527712eeo.349.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Sep 2013 01:18:34 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.172 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.215.172; Received: by mail-ea0-f172.google.com with SMTP id r16so2492026ead.31 for ; Mon, 30 Sep 2013 01:18:34 -0700 (PDT) X-Received: by 10.15.98.9 with SMTP id bi9mr1273919eeb.67.1380529113799; Mon, 30 Sep 2013 01:18:33 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id a1sm48398213eem.1.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 30 Sep 2013 01:18:33 -0700 (PDT) From: Ulf Hansson To: linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Chris Ball Cc: Ulf Hansson , Tony Olech , linux-usb@vger.kernel.org, Alan Stern Subject: [PATCH] mmc: vub300: Move away from using deprecated APIs Date: Mon, 30 Sep 2013 10:18:24 +0200 Message-Id: <1380529104-25818-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) 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: , 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 Cc: linux-usb@vger.kernel.org Signed-off-by: Ulf Hansson Cc: Alan Stern --- 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