Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3510197yba; Mon, 29 Apr 2019 03:47:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqxRSBBgIbdCYlvhivPo5TAHwDesjIehOYN1w+y7HeN3xeEVtpQ1cA2q7PlJMph35QNEW7kV X-Received: by 2002:a17:902:525:: with SMTP id 34mr61774917plf.138.1556534855922; Mon, 29 Apr 2019 03:47:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556534855; cv=none; d=google.com; s=arc-20160816; b=PiUDN4kgmjuyj8B27M1GL8uhVRQRKSBCu5X1P89ErDy+8Gd5kW3Oh8rzRy7VU8zDTD Fkrkcu2yU3L4Vn+zOacLS+YvnI/Q8BQ4lpI/2fSqjY9K1RTMQupCUFckyCDa1xVf7KA5 neS5/z6oIL7CY6pObBS3iOCxlCjuWwCPFbvEEJ6bpqVQOjutNjcCWkHC2Bei8VkwD375 G/dOr6Sh8NJ9oaUm7y/qUZpdtwkvHWSZwTC/kMwGJJehKBkpDUZvbWKXy+Vp54/QUkOL 4bzmqZa2f/vWo5kJzciMI3XPCXjY1D411aRCQ6q7jBox940ZhjoOhuHKT2Erjby43J8U wHCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=et/npkNIorgdGot5d1HzokiqbJQ8Gh0K1joI75MNIac=; b=Yw55a2iAVXmwXZSfymJbm+6pcLw61hx2Uxf++6RXCbZ4zrrs3Cfm+2D46qMDnlrvj6 FBTqvH3s1PqzVenoWcbmGGf9ECakRrYvGsdIJEvN9uJOKfWboCfxXxFSF4vQGJIRRf7c 8Viv19tv6w21pudvBSqoIvs7qFzCxgdKpk71KR+85C4U1KIUrZgzuDTesmXt/2Yiw/oT 9RbjRdfjyMIHbpqutz66FuItJ7TSxAqGd2heLpPR0wMHMqe2dJyGmKNaMM2m3cx14UM+ cWJ+oMIbUsANaHzt0VcLtCSuuH85zKxxHqVHUMarmqgfYTUA2uYqLMbBDSI/TYYb4R2X HgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ve1WNkID; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f2si4028156pln.360.2019.04.29.03.47.20; Mon, 29 Apr 2019 03:47:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ve1WNkID; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727981AbfD2Kpu (ORCPT + 99 others); Mon, 29 Apr 2019 06:45:50 -0400 Received: from mail-vs1-f68.google.com ([209.85.217.68]:38674 "EHLO mail-vs1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727927AbfD2Kpu (ORCPT ); Mon, 29 Apr 2019 06:45:50 -0400 Received: by mail-vs1-f68.google.com with SMTP id s2so5600737vsi.5 for ; Mon, 29 Apr 2019 03:45:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=et/npkNIorgdGot5d1HzokiqbJQ8Gh0K1joI75MNIac=; b=Ve1WNkIDse3QBHPps/fmIJd/CV4T/lN9ZDCLtrDRz2/FYapa1OSvfd+q1Ab83gaBGC tlEW+igfO+o6mPm8YpQJ0yXbyaLebs9DrjAvAn2FNqIVG5Igf8P3hAKC69MhVyLABIia urCSnsmNn6IFB8lzcOMdodV+X3/51W3zP8TgU7B4A2WWr/eHKIYBgpAjh/jwmB7BMPrE 6w2shdOKowd7Tq7MXLxFs0UqfxFhvOqWpvx0mLqU/QwD+YFIelM5nSlLa6H392Un9sOu kswbsj3IxaYpdBHjkfvojMFKtcNYXojheCI3mD0lv3gjj8mfT7wtmHjCjTNrn1HvqFYj uQDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=et/npkNIorgdGot5d1HzokiqbJQ8Gh0K1joI75MNIac=; b=dp6f9QuUs+IHML7DqWd1nA98PcaNDnkHbkUzDx5hiSw1UtR3cVcsNN1AKVFeugJRtn 5z0mx4FHu7tzKZh1YJMzvnSxCcjL8eV5TkauI4whmMhK8HtzpYTvl8Rb8zpVlAJwclVC wRw6wgs2ktVcfEmSW6j/hQZbBXXhfDmwaR7ngWrZZKvMUxUDQxad5pD6zSCsK3YxFfl8 SzyZqubOorleRGDyMp1Aatn0fTStnCkKGif1vT/V+5PfHo84g5Miw8X8aOCAmAZ0YBJk pT5/wzqCKbHgQ97t2KW80/ONfoii9c994z/wHlyZTLdtigXEhLJPiaa29x+YLV9CmFto +E8Q== X-Gm-Message-State: APjAAAXgFkX1TPBJJyJmWrwau6GD/vVATk8pGknX4oo52sHWigPjedJ4 1sbwRfbHJbM7QFSDwKJqCwaro16m+nL3ZfshWED6uQ== X-Received: by 2002:a67:ec03:: with SMTP id d3mr32154639vso.165.1556534749192; Mon, 29 Apr 2019 03:45:49 -0700 (PDT) MIME-Version: 1.0 References: <20190423075020.173734-1-wangkefeng.wang@huawei.com> <20190423075020.173734-18-wangkefeng.wang@huawei.com> In-Reply-To: <20190423075020.173734-18-wangkefeng.wang@huawei.com> From: Ulf Hansson Date: Mon, 29 Apr 2019 12:45:13 +0200 Message-ID: Subject: Re: [PATCH next 17/25] mmc: omap_hsmmc: Use dev_get_drvdata() To: Kefeng Wang Cc: Linux Kernel Mailing List , Masahiro Yamada , Linus Walleij , "linux-mmc@vger.kernel.org" , linux-omap Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 23 Apr 2019 at 09:40, Kefeng Wang wrote: > > Using dev_get_drvdata directly. > > Cc: Ulf Hansson > Cc: Linus Walleij > Cc: linux-mmc@vger.kernel.org > Cc: linux-omap@vger.kernel.org > Signed-off-by: Kefeng Wang Applied for next, thanks! Kind regards Uffe > --- > drivers/mmc/host/omap_hsmmc.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c > index 29a1ddaa7466..952fa4063ff8 100644 > --- a/drivers/mmc/host/omap_hsmmc.c > +++ b/drivers/mmc/host/omap_hsmmc.c > @@ -2077,7 +2077,7 @@ static int omap_hsmmc_runtime_suspend(struct device *dev) > unsigned long flags; > int ret = 0; > > - host = platform_get_drvdata(to_platform_device(dev)); > + host = dev_get_drvdata(dev); > omap_hsmmc_context_save(host); > dev_dbg(dev, "disabled\n"); > > @@ -2118,7 +2118,7 @@ static int omap_hsmmc_runtime_resume(struct device *dev) > struct omap_hsmmc_host *host; > unsigned long flags; > > - host = platform_get_drvdata(to_platform_device(dev)); > + host = dev_get_drvdata(dev); > omap_hsmmc_context_restore(host); > dev_dbg(dev, "enabled\n"); > > -- > 2.20.1 >