Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp352098pxb; Thu, 14 Jan 2021 07:30:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgPf1ICgO+wt1LcM4bFJu7Cxgv2QpR1W+5a9ougxt8q8gIqBJbWrunl6Ame+tC7W995Wrs X-Received: by 2002:a05:6402:2694:: with SMTP id w20mr6225888edd.200.1610638219198; Thu, 14 Jan 2021 07:30:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610638219; cv=none; d=google.com; s=arc-20160816; b=ZNbV5S3ZLr3DSSQdZc470QsrnqJrT1TeiDYD+ruD1IyUsg/ACIm7GLcsVDP4L0v2hm 209YCNnfDEVctD5K0DjhbFiIJmc6cf5uJMLhnPA611oCdqwTEwgaosqZofhwKdIH5fB+ Lk7Yd1DyKo28hKMXna/qJTYA/hoVDXCfiM5K1Kti2U1MwEdVFyCZLm2rMkN9ZCCz0dBq Q2ezTCmJewIph7hC+hQcudpCrEyme+6LjOV4mmtQoeC7mFWZJiIUNb8d76bY5DhSGfVV vvL/Cq/BB7ZKYgMzRkQYx99BpePLEqUZEDnfk+KMxPZhLqB13p3nZ0ufjQFOK1rMvV9T Lt2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:ironport-sdr:ironport-sdr; bh=JQLct/glYvMMom56Swd6m9sGQu1L/ZL1wjimj6B9SqI=; b=qo1uUJU8TWzyMcdZMuIQzutBNWO2vL89lOFlFugMAPyLhpuXvjiBJWytMk5WlXzcRw Ff6SxC1C+WRBs3KhAIcHO1Nvwr2qeukOq8J6hNBfqVJb+LU7W6Ah4haKRz3XqKfdIpKc NwQTH3M5Dewcj0nNgRdWKaWMdpD1cxFXlYbYF9PKv1NAPnslBtZkLCDFtm4tXxRnjAh4 jK2AjX/oaML0doA60gRRq+FmIazNEHB8V5Eu/cs95a9ayfjflv0iMr8fjj3xomkzmK0I 6YTpTg8Yrdx02fzItNdVHXK18E3SGqa1ta5lP5JQMsXoLGBC5vr9WkCwGH+ameY2mdgY Q4jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d21si2888089edy.92.2021.01.14.07.29.53; Thu, 14 Jan 2021 07:30:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729068AbhANP3M (ORCPT + 99 others); Thu, 14 Jan 2021 10:29:12 -0500 Received: from mga14.intel.com ([192.55.52.115]:7042 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbhANP3L (ORCPT ); Thu, 14 Jan 2021 10:29:11 -0500 IronPort-SDR: TN7ABXlD9rHFxNCiTwF8LV4rYhsUpCGoc9GS0bFe5BeCE4P0T6YACcwk2/e1BT8nwGgI9PfByg cqSBkLHJncgQ== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="177604646" X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="177604646" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2021 07:28:30 -0800 IronPort-SDR: NoxZ3DHvz2CuXS0x4PLU/X4En+RToa7BGMCe4CfyQkjDrSYR5QyUo3kDJNk6vMScPTt5biLQeh GjTIxLb5O//g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="568193554" Received: from zulkifl3-ilbpg0.png.intel.com ([10.88.229.114]) by orsmga005.jf.intel.com with ESMTP; 14 Jan 2021 07:28:27 -0800 From: Muhammad Husaini Zulkifli To: ulf.hansson@linaro.org, broonie@kernel.org, lgirdwood@gmail.com, robh+dt@kernel.org, devicetree@vger.kernel.org, adrian.hunter@intel.com, michal.simek@xilinx.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: andriy.shevchenko@intel.com, Rashmi.A@intel.com, mahesh.r.vaidya@intel.com, muhammad.husaini.zulkifli@intel.com Subject: [PATCH v1 1/9] mmc: sdhci-of-arasan: use of_device_get_match_data() Date: Thu, 14 Jan 2021 23:26:52 +0800 Message-Id: <20210114152700.21916-2-muhammad.husaini.zulkifli@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210114152700.21916-1-muhammad.husaini.zulkifli@intel.com> References: <20210114152700.21916-1-muhammad.husaini.zulkifli@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use of_device_get_match_data() helper to get the match-data. Signed-off-by: Muhammad Husaini Zulkifli Suggested-by: Andy Shevchenko Acked-by: Adrian Hunter Acked-by: Andy Shevchenko --- drivers/mmc/host/sdhci-of-arasan.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 4f3774bcda94..07479019caf9 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -1508,7 +1508,6 @@ static int sdhci_arasan_add_host(struct sdhci_arasan_data *sdhci_arasan) static int sdhci_arasan_probe(struct platform_device *pdev) { int ret; - const struct of_device_id *match; struct device_node *node; struct clk *clk_xin; struct sdhci_host *host; @@ -1517,8 +1516,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; const struct sdhci_arasan_of_data *data; - match = of_match_node(sdhci_arasan_of_match, pdev->dev.of_node); - data = match->data; + data = of_device_get_match_data(&pdev->dev); host = sdhci_pltfm_init(pdev, data->pdata, sizeof(*sdhci_arasan)); if (IS_ERR(host)) -- 2.17.1