Merge tag 'pci-v5.18-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
[sfrench/cifs-2.6.git] / drivers / iio / amplifiers / hmc425a.c
index 16c0a77f6a1c1fb8dbf8a9625374b39ff3e4ee93..ce80e0c916f4a0db8c8704733bf58188c66857e7 100644 (file)
 #include <linux/iio/iio.h>
 #include <linux/iio/sysfs.h>
 #include <linux/kernel.h>
+#include <linux/mod_devicetable.h>
 #include <linux/module.h>
-#include <linux/of_device.h>
-#include <linux/of_platform.h>
 #include <linux/platform_device.h>
+#include <linux/property.h>
 #include <linux/slab.h>
 #include <linux/regulator/consumer.h>
 #include <linux/sysfs.h>
@@ -192,7 +192,7 @@ static int hmc425a_probe(struct platform_device *pdev)
                return -ENOMEM;
 
        st = iio_priv(indio_dev);
-       st->type = (uintptr_t)of_device_get_match_data(&pdev->dev);
+       st->type = (uintptr_t)device_get_match_data(&pdev->dev);
 
        st->chip_info = &hmc425a_chip_info_tbl[st->type];
        indio_dev->num_channels = st->chip_info->num_channels;