diff mbox series

mfd: sm501: Include the GPIO driver header

Message ID 20190820103715.7489-1-linus.walleij@linaro.org
State Accepted
Commit f68c0a873ef28637a201ec37e1bafdf040813454
Headers show
Series mfd: sm501: Include the GPIO driver header | expand

Commit Message

Linus Walleij Aug. 20, 2019, 10:37 a.m. UTC
This driver creates a gpio chip so it needs to include the
appropriate header <linux/gpio/driver.h> explicitly rather
than implicitly.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/mfd/sm501.c | 1 +
 1 file changed, 1 insertion(+)

-- 
2.21.0

Comments

Lee Jones Sept. 2, 2019, 9:05 a.m. UTC | #1
On Tue, 20 Aug 2019, Linus Walleij wrote:

> This driver creates a gpio chip so it needs to include the

> appropriate header <linux/gpio/driver.h> explicitly rather

> than implicitly.

> 

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

> ---

>  drivers/mfd/sm501.c | 1 +

>  1 file changed, 1 insertion(+)


Applied, thanks.

-- 
Lee Jones [李琼斯]
Linaro Services Technical Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
diff mbox series

Patch

diff --git a/drivers/mfd/sm501.c b/drivers/mfd/sm501.c
index 9b9b06d36cb1..dc46d62085cc 100644
--- a/drivers/mfd/sm501.c
+++ b/drivers/mfd/sm501.c
@@ -17,6 +17,7 @@ 
 #include <linux/platform_device.h>
 #include <linux/pci.h>
 #include <linux/platform_data/i2c-gpio.h>
+#include <linux/gpio/driver.h>
 #include <linux/gpio/machine.h>
 #include <linux/slab.h>