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

mfd: madera: Include correct gpio API

The driver is using gpiod API and therefore should include
linux/gpio/consumer.h, not linux/gpio.h. Also, the driver does not use
any of the APIs from of_gpio.h, so we should not be including it.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220926054421.1546436-2-dmitry.torokhov@gmail.com

authored by

Dmitry Torokhov and committed by
Lee Jones
de5567ca 2e992b22

+1 -2
+1 -2
drivers/mfd/madera-core.c
··· 8 8 #include <linux/device.h> 9 9 #include <linux/delay.h> 10 10 #include <linux/err.h> 11 - #include <linux/gpio.h> 11 + #include <linux/gpio/consumer.h> 12 12 #include <linux/mfd/core.h> 13 13 #include <linux/module.h> 14 14 #include <linux/mutex.h> 15 15 #include <linux/notifier.h> 16 16 #include <linux/of.h> 17 - #include <linux/of_gpio.h> 18 17 #include <linux/platform_device.h> 19 18 #include <linux/pm_runtime.h> 20 19 #include <linux/regmap.h>