[PATCH linux-next] clk-gpio-gate: include gpio/consumer to fix build

From: Vincent StehlÃ
Date: Tue Sep 30 2014 - 15:36:58 EST


This fixes the following build error:

drivers/clk/clk-gpio-gate.c: In function âclk_gpio_gate_enableâ:
drivers/clk/clk-gpio-gate.c:36:2: error: implicit declaration of function âgpiod_set_valueâ [-Werror=implicit-function-declaration]
drivers/clk/clk-gpio-gate.c: In function âclk_gpio_gate_is_enabledâ:
drivers/clk/clk-gpio-gate.c:52:2: error: implicit declaration of function âgpiod_get_valueâ [-Werror=implicit-function-declaration]
drivers/clk/clk-gpio-gate.c: In function âclk_register_gpio_gateâ:
drivers/clk/clk-gpio-gate.c:79:2: error: implicit declaration of function âgpiod_is_active_lowâ [-Werror=implicit-function-declaration]
drivers/clk/clk-gpio-gate.c:85:3: error: implicit declaration of function âdesc_to_gpioâ [-Werror=implicit-function-declaration]
drivers/clk/clk-gpio-gate.c:125:2: error: implicit declaration of function âgpiod_putâ [-Werror=implicit-function-declaration]
drivers/clk/clk-gpio-gate.c: In function âof_clk_gpio_gate_delayed_register_getâ:
drivers/clk/clk-gpio-gate.c:169:2: error: implicit declaration of function âgpio_to_descâ [-Werror=implicit-function-declaration]

Signed-off-by: Vincent Stehlà <vincent.stehle@xxxxxxxxxxx>
Cc: Jyri Sarha <jsarha@xxxxxx>
Cc: Mike Turquette <mturquette@xxxxxxxxxx>
---

Hi,

This can be seen with e.g. linux next-20140930 and arm alldefconfig.

Best regards,

V.

drivers/clk/clk-gpio-gate.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-gpio-gate.c b/drivers/clk/clk-gpio-gate.c
index 9dde885..08e4322 100644
--- a/drivers/clk/clk-gpio-gate.c
+++ b/drivers/clk/clk-gpio-gate.c
@@ -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.1.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/