From patchwork Tue Oct 14 11:45:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 5079581 Return-Path: X-Original-To: patchwork-linux-mmc@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 656069F295 for ; Tue, 14 Oct 2014 11:45:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B3E520158 for ; Tue, 14 Oct 2014 11:45:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 682B420179 for ; Tue, 14 Oct 2014 11:45:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932075AbaJNLpk (ORCPT ); Tue, 14 Oct 2014 07:45:40 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:47164 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755061AbaJNLpk (ORCPT ); Tue, 14 Oct 2014 07:45:40 -0400 Received: by mail-lb0-f176.google.com with SMTP id p9so8183187lbv.35 for ; Tue, 14 Oct 2014 04:45:38 -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=OeNTzYzyrr1GbAjPqm+2WeSv0slbRY8gEJVj2wOoUTw=; b=X0M8eUEE98r0VN/ivgOGy2ACjvrPC7VXvf/5bGebFHtaEzspcRChz1Rwr+LebsQ7DQ 7I0xYEJIJJNvgWAL2iYWPdmMgKXDs/2RcE+3ZFRF28uxz75zEx9lXTt3J3N28X87HXeL f4+Ci4kBOwwrSuJe6LQdUudsC5MN0YGwyjZzcmmJSvq97MJHBUsXLMFpUC2jS9vVWzUd hIqDGtLbEu88X6XLY+fd3HAcviDEKtYDf3E8mNpftO/FrwjcDq8yH+8jp0rIVX6KO6Ot v891SzHe4oQ0ZBgXgkwcUW9Q7VEzb8Khxe9HVstKRlilztrWR6GIbNIDjkFdowaW/2pb 5Z/g== X-Gm-Message-State: ALoCoQlSzixfMoFj+j8mPC2uYwy3A5BUXOeSsWsFSHz0Djd7zDqANZz9se6gnyyU9qw8Ww3rmFUR X-Received: by 10.112.73.35 with SMTP id i3mr4710447lbv.75.1413287138817; Tue, 14 Oct 2014 04:45:38 -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 xh2sm5520440lbb.7.2014.10.14.04.45.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Oct 2014 04:45:37 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Chris Ball Cc: Ulf Hansson Subject: [PATCH 5/7] mmc: msm_sdcc: Use platform_set|get_drvdata Date: Tue, 14 Oct 2014 13:45:18 +0200 Message-Id: <1413287120-10914-6-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413287120-10914-1-git-send-email-ulf.hansson@linaro.org> References: <1413287120-10914-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 The msm_sdcc host shall not use mmc core specific macros to handle its driver data. Instead, convert to use the platform device driver macros. Signed-off-by: Ulf Hansson --- drivers/mmc/host/msm_sdcc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/host/msm_sdcc.c b/drivers/mmc/host/msm_sdcc.c index 9405ecd..90c60fd 100644 --- a/drivers/mmc/host/msm_sdcc.c +++ b/drivers/mmc/host/msm_sdcc.c @@ -1360,7 +1360,7 @@ msmsdcc_probe(struct platform_device *pdev) if (ret) goto cmd_irq_free; - mmc_set_drvdata(pdev, mmc); + platform_set_drvdata(pdev, mmc); mmc_add_host(mmc); pr_info("%s: Qualcomm MSM SDCC at 0x%016llx irq %d,%d dma %d\n", @@ -1419,7 +1419,7 @@ ioremap_free: static int msmsdcc_suspend(struct platform_device *dev, pm_message_t state) { - struct mmc_host *mmc = mmc_get_drvdata(dev); + struct mmc_host *mmc = platform_get_drvdata(dev); if (mmc) { struct msmsdcc_host *host = mmc_priv(mmc); @@ -1437,7 +1437,7 @@ msmsdcc_suspend(struct platform_device *dev, pm_message_t state) static int msmsdcc_resume(struct platform_device *dev) { - struct mmc_host *mmc = mmc_get_drvdata(dev); + struct mmc_host *mmc = platform_get_drvdata(dev); if (mmc) { struct msmsdcc_host *host = mmc_priv(mmc);