Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3285770yba; Tue, 23 Apr 2019 00:42:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAyrNlMd85QExbPdgrjEcJryxyqeYxcGPGCO9lJ4EqrDnxssmEQ0i29sq0+0K7UQi1zpEl X-Received: by 2002:a63:6942:: with SMTP id e63mr22878249pgc.102.1556005351331; Tue, 23 Apr 2019 00:42:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556005351; cv=none; d=google.com; s=arc-20160816; b=kULSU3NoC2EMN6UWzwD+qtNk86skkihkqJvWfddlk4ynv5Jq2WcAl3UPYFuYt5ncoN cLOLlYfbrMe2LdwknOmUwh08I1DEkOtcF0ozh+TnCEz3V2EdArbUSPah6cKUnAduIFpt qeZ02sztEuLYnLAS5RwoWgRH9br8jEPCU+i69Zt9Xh9GvMWQGu5to+LpWN3nHfHQWkT8 KDN52OF0IB7XDIXL8Ebl0BG9xKJdJy3pkUTC2CON+hDiGA9eTjzamNcvg7S13j+tocxY 0Dya5CdWeMxefb66NdFDOKwJcMbG11BWoBA6AUItZEvtZkaxvZrgS5bAQPOeMEciPbKZ sGwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=859wyC2tFV9VzHJDb94wTN6gZia5QgYl9CB7EBH7C38=; b=jMIK2v6V72DP4VAPgZ4zfSNuxbWH3kY6p8fQR/0ILb7kGnZe3Rb/zbJeMj+p4gBAj3 81VmzoRU7F0+Di5A+BvdusYWZdqyfDur2Md8krKI/ztRVNROce4Aqt9TgBL/Ck8xTO7f 5ah3hUpfUFFg2/hc7ttzJQE8ggLKNthoEFUUHOU8g7qwrCgfJ5BUGQPkGTsQnbY/HnuI n4+Pk4WFg+M63FfAovFivunkT+nkKQYkO+r9ujNCTepo5wi+z6IqEsCMcLA6mNre9KpN qJNZQdigj/+rO10hFHBf/W3W2cbOsPtqwU+n+M8MHnXsWqJRlTt3UI+WTrWCLq8dh7sU XHKw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si13667363pgc.313.2019.04.23.00.42.16; Tue, 23 Apr 2019 00:42:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727000AbfDWHlB (ORCPT + 99 others); Tue, 23 Apr 2019 03:41:01 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7227 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726503AbfDWHkZ (ORCPT ); Tue, 23 Apr 2019 03:40:25 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 4D8709554B718190BC2D; Tue, 23 Apr 2019 15:40:22 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Tue, 23 Apr 2019 15:40:11 +0800 From: Kefeng Wang To: CC: Masahiro Yamada , Kefeng Wang , Ulf Hansson , "Linus Walleij" , , Subject: [PATCH next 17/25] mmc: omap_hsmmc: Use dev_get_drvdata() Date: Tue, 23 Apr 2019 15:50:12 +0800 Message-ID: <20190423075020.173734-18-wangkefeng.wang@huawei.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190423075020.173734-1-wangkefeng.wang@huawei.com> References: <20190423075020.173734-1-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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