Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp352144pxb; Thu, 14 Jan 2021 07:30:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5e7HN0O2uQghQPWFfSH7MwlW1yQjXBz0atjC+CwuyTsqpc/5dqhubEQ4640QCRjlkyVXL X-Received: by 2002:a17:906:6d0b:: with SMTP id m11mr5434203ejr.230.1610638222328; Thu, 14 Jan 2021 07:30:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610638222; cv=none; d=google.com; s=arc-20160816; b=JNJGrFTKKrzEllWuuhsMl3MTJ5n93zRxk+L+Ru646XKp68cM/erJMlM2uO7jpOdJWk SXagwMP5ujDP2kIZiaUTJMNBtjfQWoCxdu30zPwUhc1ajZK4EKE/L+6DZNRchQKAb3C4 dq6rSYeTWj3JNslpIv7afdQnwMpQ6tbeFb+ko+haou7ND1dZOYbf7230rjXwIkDkYjK9 3TJYheh09deggLwS9TxvvvsrqqRrSJ6Yl07/F35nW8j+P7MLae+0AYAXsqYNd9YCp9Di f/4BpYr+KpG+Yj911+bSkAdevSfxEBFUWr1F1EJGR7dCsm4jWfCcO34qLT1FqZAKYzG1 t3cg== 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=F31V4ErHU/O8a0I78FM8k5Kfplw5nRSm3PW6NzB+NC4=; b=IcoGGHxrPQVshc1AIw7GRPuIFkcSMP7cu0b0tuAcgda0Swbc1lJFJPs49Y9frsaKYz pO964CFEFVrf6jfiDFxXDldCWTFcf3c5LRTxHFRsSeJ7bUG3UtMzidSNJ5uIZw1u3R/Q T+V6Y7j8rhfVuwMz8rx+eFA5zLZeeg2pvncqIgjAUwM2aqCtHrkP+EIzZ/9sveoWS/ts pd+57G+dEEPf9K3Sfn3lBKFdykpDC6ToEr3rbveMCijf5WXMBp4lPoxrkvVvevf1kHdr 9pjMurjGM1EEg8TCMe51BsIDUp9/owcvQZvVHb/7Nir9YDmmpGTjJwhhsB/k7XfgSXm2 GIIQ== 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 di24si2662519edb.234.2021.01.14.07.29.58; Thu, 14 Jan 2021 07:30:22 -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 S1729213AbhANP3P (ORCPT + 99 others); Thu, 14 Jan 2021 10:29:15 -0500 Received: from mga14.intel.com ([192.55.52.115]:7044 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726259AbhANP3O (ORCPT ); Thu, 14 Jan 2021 10:29:14 -0500 IronPort-SDR: BaNT3Bb6qOTjPIL5bXyO99UOwGWu71gmzpLGUUEGjMud6/bpJaOC6QPA+VG0ZZKqd6EOPpcA/0 gW0dQ7AC51ig== X-IronPort-AV: E=McAfee;i="6000,8403,9864"; a="177604650" X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="177604650" 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:34 -0800 IronPort-SDR: dILQRkIpTGFKwwYtWjr0dNTrkFx0YCtigf5SjsCMPo5ZKO2KeyZCWXdfJPICI7i5St/VQiFC6r C/JucOne765w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,347,1602572400"; d="scan'208";a="568193576" Received: from zulkifl3-ilbpg0.png.intel.com ([10.88.229.114]) by orsmga005.jf.intel.com with ESMTP; 14 Jan 2021 07:28:31 -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 2/9] mmc: sdhci-of-arasan: Convert to use np instead of pdev->dev.of_node Date: Thu, 14 Jan 2021 23:26:53 +0800 Message-Id: <20210114152700.21916-3-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 np pointer to simplify code and improve readability. 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/host/sdhci-of-arasan.c b/drivers/mmc/host/sdhci-of-arasan.c index 07479019caf9..ecaea4b45367 100644 --- a/drivers/mmc/host/sdhci-of-arasan.c +++ b/drivers/mmc/host/sdhci-of-arasan.c @@ -1529,7 +1529,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) sdhci_arasan->soc_ctl_map = data->soc_ctl_map; sdhci_arasan->clk_ops = data->clk_ops; - node = of_parse_phandle(pdev->dev.of_node, "arasan,soc-ctl-syscon", 0); + node = of_parse_phandle(np, "arasan,soc-ctl-syscon", 0); if (node) { sdhci_arasan->soc_ctl_base = syscon_node_to_regmap(node); of_node_put(node); @@ -1578,8 +1578,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) pltfm_host->clk = clk_xin; - if (of_device_is_compatible(pdev->dev.of_node, - "rockchip,rk3399-sdhci-5.1")) + if (of_device_is_compatible(np, "rockchip,rk3399-sdhci-5.1")) sdhci_arasan_update_clockmultiplier(host, 0x0); if (of_device_is_compatible(np, "intel,keembay-sdhci-5.1-emmc") || @@ -1612,8 +1611,7 @@ static int sdhci_arasan_probe(struct platform_device *pdev) } sdhci_arasan->phy = ERR_PTR(-ENODEV); - if (of_device_is_compatible(pdev->dev.of_node, - "arasan,sdhci-5.1")) { + if (of_device_is_compatible(np, "arasan,sdhci-5.1")) { sdhci_arasan->phy = devm_phy_get(&pdev->dev, "phy_arasan"); if (IS_ERR(sdhci_arasan->phy)) { -- 2.17.1