Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <peda@axentia.se>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210330193325.68362-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
7fef54e2 5c777233

+2 -2
+2 -2
drivers/mux/gpio.c
··· 10 10 #include <linux/bitmap.h> 11 11 #include <linux/err.h> 12 12 #include <linux/gpio/consumer.h> 13 + #include <linux/mod_devicetable.h> 13 14 #include <linux/module.h> 14 15 #include <linux/mux/driver.h> 15 - #include <linux/of_platform.h> 16 16 #include <linux/platform_device.h> 17 17 #include <linux/property.h> 18 18 ··· 98 98 static struct platform_driver mux_gpio_driver = { 99 99 .driver = { 100 100 .name = "gpio-mux", 101 - .of_match_table = of_match_ptr(mux_gpio_dt_ids), 101 + .of_match_table = mux_gpio_dt_ids, 102 102 }, 103 103 .probe = mux_gpio_probe, 104 104 };