From: Andy Shevchenko Date: Wed, 13 Apr 2022 18:34:21 +0000 (+0300) Subject: iio: proximity: ping: Replace OF specific code by device_get_match_data() X-Git-Tag: v6.1-rc5~1160^2~81^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=87b7b07bf0f013b97db2ecbdbb9c64e093bd3587;p=platform%2Fkernel%2Flinux-starfive.git iio: proximity: ping: Replace OF specific code by device_get_match_data() Instead of calling the OF specific API, use device_get_match_data(). Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20220413183421.20427-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/proximity/ping.c b/drivers/iio/proximity/ping.c index 24a97d4..d56e037 100644 --- a/drivers/iio/proximity/ping.c +++ b/drivers/iio/proximity/ping.c @@ -29,9 +29,8 @@ #include #include #include +#include #include -#include -#include #include #include #include @@ -288,7 +287,7 @@ static int ping_probe(struct platform_device *pdev) data = iio_priv(indio_dev); data->dev = dev; - data->cfg = of_device_get_match_data(dev); + data->cfg = device_get_match_data(dev); mutex_init(&data->lock); init_completion(&data->rising);