diff options
| author | Andy Shevchenko <[email protected]> | 2021-03-30 19:33:24 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-04-02 14:28:53 +0000 |
| commit | 7fef54e25541c49c99ba5787bfb45216c30df3e7 (patch) | |
| tree | 1903f0e76ad73b7dc9c6076884d0d4e577ade120 /drivers/mux/gpio.c | |
| parent | mux: gpio: Use bitmap API instead of direct assignment (diff) | |
| download | kernel-7fef54e25541c49c99ba5787bfb45216c30df3e7.tar.gz kernel-7fef54e25541c49c99ba5787bfb45216c30df3e7.zip | |
mux: gpio: Make it OF independent
Module doesn't use OF APIs anyhow, make it OF independent by replacing
headers and dropping useless of_match_ptr() call.
Acked-by: Peter Rosin <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/mux/gpio.c')
| -rw-r--r-- | drivers/mux/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mux/gpio.c b/drivers/mux/gpio.c index d1b4aa923657..92cc476c916e 100644 --- a/drivers/mux/gpio.c +++ b/drivers/mux/gpio.c @@ -10,9 +10,9 @@ #include <linux/bitmap.h> #include <linux/err.h> #include <linux/gpio/consumer.h> +#include <linux/mod_devicetable.h> #include <linux/module.h> #include <linux/mux/driver.h> -#include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/property.h> @@ -98,7 +98,7 @@ static int mux_gpio_probe(struct platform_device *pdev) static struct platform_driver mux_gpio_driver = { .driver = { .name = "gpio-mux", - .of_match_table = of_match_ptr(mux_gpio_dt_ids), + .of_match_table = mux_gpio_dt_ids, }, .probe = mux_gpio_probe, }; |
