From patchwork Thu Sep 26 14:54:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 20611 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3163624687 for ; Thu, 26 Sep 2013 14:56:05 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l4sf1031827yen.6 for ; Thu, 26 Sep 2013 07:56:04 -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=YqGtd2Qgqon7ANuYH90gc/b3rKThb7lnqC+n844LcWg=; b=lf++6x9zK+6JLb5CSmthtj5T4J/N6DIRt9+ZNmyiFQL5pCallaXoQTlFEQg/Fp6LUZ 7/vyBthbhfuwi/5RE9sZl4v5skm8L4TL+Z0gtkBdo9PHgQEyJEOyq8gUi+no2H9R0SG4 Zt2yXRorXBZEWdybt1aKJtHN4fQMtQhxinw/VXEweCh9GpV2HNGO1U8e9oVuLFsdxwGt c5T0Mfl/52uG+hw6D5Zmf5d662HOj86h7buspEIq8kkdQtFw6EnJz77Q/+K+vKPL2DJf d+xN3VcI/3oQIMPf1sr3v2WUBMyo8w8OuguP9nik3MHeBrtqqoTvNE6lL7SYkuCJyYJY loxQ== X-Gm-Message-State: ALoCoQllHhgq1t8Bz3N6hmP8UaBCQuPJzLqmin0eDTWMXVFHTy3ApPHY1BoVLPVO6nYJKFm+MW5E X-Received: by 10.236.24.195 with SMTP id x43mr255313yhx.3.1380207364921; Thu, 26 Sep 2013 07:56:04 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.99.10 with SMTP id em10ls940731qeb.82.gmail; Thu, 26 Sep 2013 07:56:04 -0700 (PDT) X-Received: by 10.220.237.208 with SMTP id kp16mr1047506vcb.4.1380207364817; Thu, 26 Sep 2013 07:56:04 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id r3si492223ven.107.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 07:56:04 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.49; Received: by mail-vb0-f49.google.com with SMTP id w16so907842vbb.36 for ; Thu, 26 Sep 2013 07:55:34 -0700 (PDT) X-Received: by 10.52.165.131 with SMTP id yy3mr843561vdb.25.1380207334719; Thu, 26 Sep 2013 07:55:34 -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 u4csp371098vcz; Thu, 26 Sep 2013 07:55:34 -0700 (PDT) X-Received: by 10.15.23.69 with SMTP id g45mr730085eeu.90.1380207333769; Thu, 26 Sep 2013 07:55:33 -0700 (PDT) Received: from mail-ea0-f180.google.com (mail-ea0-f180.google.com [209.85.215.180]) by mx.google.com with ESMTPS id l4si1851329eew.191.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 07:55:33 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.180 is neither permitted nor denied by best guess record for domain of ulf.hansson@linaro.org) client-ip=209.85.215.180; Received: by mail-ea0-f180.google.com with SMTP id h10so613408eaj.11 for ; Thu, 26 Sep 2013 07:55:33 -0700 (PDT) X-Received: by 10.15.32.136 with SMTP id a8mr1851750eev.71.1380207333264; Thu, 26 Sep 2013 07:55:33 -0700 (PDT) Received: from localhost.localdomain ([85.235.11.236]) by mx.google.com with ESMTPSA id x47sm4813555eea.16.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 07:55:32 -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 Subject: [PATCH 10/27] mmc: vub300: Remove redundant suspend and resume callbacks Date: Thu, 26 Sep 2013 16:54:35 +0200 Message-Id: <1380207292-16968-11-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1380207292-16968-1-git-send-email-ulf.hansson@linaro.org> References: <1380207292-16968-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=neutral (google.com: 209.85.212.49 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. While moving away from using the deprecated APIs, there are nothing left to be done for the suspend and resume callbacks, so remove them. Cc: Tony Olech Cc: linux-usb@vger.kernel.org Signed-off-by: Ulf Hansson --- drivers/mmc/host/vub300.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/drivers/mmc/host/vub300.c b/drivers/mmc/host/vub300.c index e9028ad..db99edc 100644 --- a/drivers/mmc/host/vub300.c +++ b/drivers/mmc/host/vub300.c @@ -2389,34 +2389,6 @@ 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; - } -} - -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; - } -} -#else -#define vub300_suspend NULL -#define vub300_resume NULL -#endif static int vub300_pre_reset(struct usb_interface *intf) { /* NOT irq */ struct vub300_mmc_host *vub300 = usb_get_intfdata(intf); @@ -2437,8 +2409,6 @@ static struct usb_driver vub300_driver = { .name = "vub300", .probe = vub300_probe, .disconnect = vub300_disconnect, - .suspend = vub300_suspend, - .resume = vub300_resume, .pre_reset = vub300_pre_reset, .post_reset = vub300_post_reset, .id_table = vub300_table,