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: 38709 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8FCDE20549 for ; Tue, 14 Oct 2014 11:45:40 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf5226893lam.0 for ; Tue, 14 Oct 2014 04:45:39 -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=OeNTzYzyrr1GbAjPqm+2WeSv0slbRY8gEJVj2wOoUTw=; b=W5+yproO3aQ7rotlu/RNmcVxAhqHn/EH5hOBqRdcStSUomOVfrn2DgwEoqlfs8AkF/ ulfxepOnH8iwAtpq1vOP0dDnVQ/qg0xnsbbmYN/YvWG583QktBD/ruMEYK6ZQlFcyCYR +V4ck39L00IO07RfxNjIvLVaWYseJbzqi918Zn7FMiTS9sqHlT66+cwl6ehqguSTzxYP qjjtkAz+opWLb862HbzbtWLBzDD82zQW2edJg0bJMsNduGDhGTAHU1Q1PcsjJLlO3vo3 QCvw4wXOvuZh/WWyyCNeMK6i1ACRd7R78h1XHJ6uBYorxMlUdO8Z4PY7n85Drl01ZRC5 OuXg== X-Gm-Message-State: ALoCoQlwu+7nOrSuYx9hHFS0j/ApDv0YsjiaHYC3L/bkA+BjOtyHnWACXiSm279VDyK0l4TRgnMi X-Received: by 10.112.254.226 with SMTP id al2mr810537lbd.1.1413287139483; Tue, 14 Oct 2014 04:45:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.20.42 with SMTP id k10ls530339lae.66.gmail; Tue, 14 Oct 2014 04:45:39 -0700 (PDT) X-Received: by 10.112.144.228 with SMTP id sp4mr4742495lbb.58.1413287139351; Tue, 14 Oct 2014 04:45:39 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com [209.85.215.53]) by mx.google.com with ESMTPS id pd3si25868042lbc.80.2014.10.14.04.45.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 04:45:39 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gq15so8502983lab.12 for ; Tue, 14 Oct 2014 04:45:39 -0700 (PDT) X-Received: by 10.112.189.10 with SMTP id ge10mr4702159lbc.23.1413287139267; Tue, 14 Oct 2014 04:45:39 -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.112.84.229 with SMTP id c5csp377714lbz; Tue, 14 Oct 2014 04:45:38 -0700 (PDT) X-Received: by 10.152.29.8 with SMTP id f8mr4837175lah.56.1413287138916; Tue, 14 Oct 2014 04:45:38 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by mx.google.com with ESMTPS id j9si20812824lag.75.2014.10.14.04.45.38 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 14 Oct 2014 04:45:38 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by mail-lb0-f170.google.com with SMTP id u10so8099761lbd.1 for ; Tue, 14 Oct 2014 04:45:38 -0700 (PDT) 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> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ulf.hansson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) 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: , 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);