Skip to contentSkip to conversation

clk: gpio-gate: Ensure gpiod_ APIs are prototyped

PATCH In review Mark Brown 3 participants 3 messages Sep 30, 2014 Common clk

lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 clk: gpio-gate: Ensure gpiod_ APIs are prototyped

The gpio-gate clock uses the gpiod_ APIs but does not directly include the header for them causing build failures in some configurations including ARM allnoconfig. Include the header directly.

---
 drivers/clk/clk-gpio-gate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/clk-gpio-gate.c +1 -0
index 9dde88533684..08e43224fd52 100644
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/of_gpio.h>
 #include <linux/err.h>
 #include <linux/device.h>
Signature · 1 line
2.1.1
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Mark Brown

The gpio-gate clock uses the gpiod_ APIs but does not directly include the header for them causing build failures in some configurations including ARM allnoconfig. Include the header directly.

Thanks.
Jyri

Quoted 17 lines
---
  drivers/clk/clk-gpio-gate.c | 1 +
  1 file changed, 1 insertion(+)
drivers/clk/clk-gpio-gate.c +1 -0
index 9dde88533684..08e43224fd52 100644
@@ -13,6 +13,7 @@
  #include <linux/module.h>
  #include <linux/slab.h>
  #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
  #include <linux/of_gpio.h>
  #include <linux/err.h>
  #include <linux/device.h>
#2 lore raw
In reply to Mark Brown

Quoting Mark Brown (2014-09-30 10:16:22)

Quoted 5 lines

The gpio-gate clock uses the gpiod_ APIs but does not directly include the header for them causing build failures in some configurations including ARM allnoconfig. Include the header directly.

Thanks Mark. Applied.

Regards,
Mike

Quoted 19 lines
---
 drivers/clk/clk-gpio-gate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/clk/clk-gpio-gate.c +1 -0
index 9dde88533684..08e43224fd52 100644
@@ -13,6 +13,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
 #include <linux/of_gpio.h>
 #include <linux/err.h>
 #include <linux/device.h>
Signature · 1 line
2.1.1