Subject: [PATCH v1 1/9] mmc: sdhci-of-arasan: use of_device_get_match_data()

Use of_device_get_match_data() helper to get the match-data.

Signed-off-by: Muhammad Husaini Zulkifli <[email protected]>
Suggested-by: Andy Shevchenko <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Acked-by: Andy Shevchenko <[email protected]>
---
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