From patchwork Mon Jun 10 15:03:42 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 17741 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 047A02397B for ; Mon, 10 Jun 2013 15:04:25 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id gf12sf6967494vcb.2 for ; Mon, 10 Jun 2013 08:04:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=nw7Uj/W4gVoUONiaEZvsl2dKLpwGVxghZiSUbCDKrDw=; b=lcuAA4miunEIYTvRH0nuW+JuP2L78y43te9gg9V0iTRO7X3j4wyjR39MQnjwH6xski aKY8doTC6Q1y2xoE+pgbH8LfWw6oflX/EdTefnz1Jpu8OuFbC/q3nI15+HcYEoBXbdkD IoS9c+ptaPJ+sNNqRz/MgS439A7UhreZ/8rqNGvCBvDLhrFr/MTKmu9tKaq8n1B61SlA voqSFce38oltlju7ORqiLKS/3SzDu0CS/FsAWX34KOC7KtztM4UZKocN6Mrur9xyVu1r ti58ne+cyR8Q7Jn43TxRXHa0kVGrGW6E4rM8CtWlGpxHnBeT4AiYaWMavmUD/LpTdbWm gGig== X-Received: by 10.58.97.200 with SMTP id ec8mr1532240veb.32.1370876665686; Mon, 10 Jun 2013 08:04:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.24.51 with SMTP id r19ls1562290qef.73.gmail; Mon, 10 Jun 2013 08:04:25 -0700 (PDT) X-Received: by 10.52.24.103 with SMTP id t7mr4993875vdf.2.1370876665478; Mon, 10 Jun 2013 08:04:25 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id zp6si5055308vdb.93.2013.06.10.08.04.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 08:04:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 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.170; Received: by mail-vc0-f170.google.com with SMTP id hf12so4582893vcb.29 for ; Mon, 10 Jun 2013 08:04:25 -0700 (PDT) X-Received: by 10.52.53.36 with SMTP id y4mr4836469vdo.51.1370876665362; Mon, 10 Jun 2013 08:04:25 -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.221.10.206 with SMTP id pb14csp71496vcb; Mon, 10 Jun 2013 08:04:24 -0700 (PDT) X-Received: by 10.14.98.71 with SMTP id u47mr11933607eef.12.1370876662229; Mon, 10 Jun 2013 08:04:22 -0700 (PDT) Received: from eu1sys200aog119.obsmtp.com (eu1sys200aog119.obsmtp.com [207.126.144.147]) by mx.google.com with SMTP id w41si8536895eex.156.2013.06.10.08.04.19 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 10 Jun 2013 08:04:22 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.147 is neither permitted nor denied by best guess record for domain of ulf.hansson@stericsson.com) client-ip=207.126.144.147; Received: from beta.dmz-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob119.postini.com ([207.126.147.11]) with SMTP ID DSNKUbXq8UR5oBr3IXX1y6Km7xq+94Ax++fG@postini.com; Mon, 10 Jun 2013 15:04:21 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 0837DBD; Mon, 10 Jun 2013 15:04:14 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id B5D479C0; Mon, 10 Jun 2013 15:04:14 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 1207824C2C0; Mon, 10 Jun 2013 17:04:06 +0200 (CEST) Received: from steludxu1397.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Mon, 10 Jun 2013 17:04:13 +0200 From: Ulf Hansson To: , Chris Ball Cc: Ulf Hansson Subject: [PATCH 07/12] mmc: core: Add shutdown callback for SD bus_ops Date: Mon, 10 Jun 2013 17:03:42 +0200 Message-ID: <1370876627-13439-8-git-send-email-ulf.hansson@stericsson.com> X-Mailer: git-send-email 1.7.10 In-Reply-To: <1370876627-13439-1-git-send-email-ulf.hansson@stericsson.com> References: <1370876627-13439-1-git-send-email-ulf.hansson@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkUMdV2tTxQ738iyBoAE+Agqrc/NuEN5MRflF3k1bJ6oEVcjhezGwFjg/rGAZHLvqeJbuFY X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 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: , From: Ulf Hansson For the SD .shutdown callback we re-use the SD suspend function since it performs the relevant actions. Signed-off-by: Ulf Hansson --- drivers/mmc/core/sd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mmc/core/sd.c b/drivers/mmc/core/sd.c index cacef27..176d125 100644 --- a/drivers/mmc/core/sd.c +++ b/drivers/mmc/core/sd.c @@ -1170,6 +1170,7 @@ static const struct mmc_bus_ops mmc_sd_ops = { .resume = NULL, .power_restore = mmc_sd_power_restore, .alive = mmc_sd_alive, + .shutdown = mmc_sd_suspend, }; static const struct mmc_bus_ops mmc_sd_ops_unsafe = { @@ -1181,6 +1182,7 @@ static const struct mmc_bus_ops mmc_sd_ops_unsafe = { .resume = mmc_sd_resume, .power_restore = mmc_sd_power_restore, .alive = mmc_sd_alive, + .shutdown = mmc_sd_suspend, }; static void mmc_sd_attach_bus_ops(struct mmc_host *host)