From: Bartosz Golaszewski Date: Mon, 7 Oct 2024 11:49:18 +0000 (+0200) Subject: mmc: davinci: use generic device_get_match_data() X-Git-Tag: v6.13-rc1~153^2~46 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f418dde028da292c67a6ca447b4f78a2fc224adf;p=thirdparty%2Flinux.git mmc: davinci: use generic device_get_match_data() There's no reason for this driver to use the OF-specific variant so switch to using the generic device_get_match_data() helper instead. Signed-off-by: Bartosz Golaszewski Link: https://lore.kernel.org/r/20241007114918.52066-2-brgl@bgdev.pl Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/davinci_mmc.c b/drivers/mmc/host/davinci_mmc.c index fe7712532e84f..cde4c4339ab75 100644 --- a/drivers/mmc/host/davinci_mmc.c +++ b/drivers/mmc/host/davinci_mmc.c @@ -21,9 +21,9 @@ #include #include #include -#include #include #include +#include /* * Register Definitions @@ -1228,7 +1228,7 @@ static int davinci_mmcsd_probe(struct platform_device *pdev) host->mmc_input_clk = clk_get_rate(host->clk); - pdev->id_entry = of_device_get_match_data(&pdev->dev); + pdev->id_entry = device_get_match_data(&pdev->dev); if (pdev->id_entry) { ret = mmc_of_parse(mmc); if (ret) {