Messages in this thread Patch in this message | | | From | Alexandre Courbot <> | Subject | [PATCH] gpiolib: fix link error when sysfs is not built | Date | Sun, 10 Feb 2013 23:00:21 +0900 |
| |
From: Alexandre Courbot <acourbot@nvidia.com>
Fix all compilation errors and warnings triggered by my latest series of patch on Grant's linux-next branch. Please meld this patch into the culprit one to avoid ending with a commit that breaks compilation in the git history.
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> --- drivers/gpio/gpiolib.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index b24e820..d283e70 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -1087,6 +1087,27 @@ static inline void gpiochip_unexport(struct gpio_chip *chip) { } +static inline int gpiod_export(struct gpio_desc *desc, + bool direction_may_change) +{ + return -ENOSYS; +} + +static inline int gpiod_export_link(struct device *dev, const char *name, + struct gpio_desc *desc) +{ + return -ENOSYS; +} + +static inline int gpiod_sysfs_set_active_low(struct gpio_desc *desc, int value) +{ + return -ENOSYS; +} + +static inline void gpiod_unexport(struct gpio_desc *desc) +{ +} + #endif /* CONFIG_GPIO_SYSFS */ /* -- 1.8.1.3
| |