[PATCH] gpio: dwapb: don't include gpiolib.h

Bartosz Golaszewski posted 1 patch 2 years, 3 months ago
drivers/gpio/gpio-dwapb.c | 1 -
1 file changed, 1 deletion(-)
[PATCH] gpio: dwapb: don't include gpiolib.h
Posted by Bartosz Golaszewski 2 years, 3 months ago
From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

The gpiolib.h is unnecessarily included in the driver. None of its
symbols are used so drop it.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
---
 drivers/gpio/gpio-dwapb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/gpio/gpio-dwapb.c b/drivers/gpio/gpio-dwapb.c
index c22fcaa44a61..4a4f61bf6c58 100644
--- a/drivers/gpio/gpio-dwapb.c
+++ b/drivers/gpio/gpio-dwapb.c
@@ -21,7 +21,6 @@
 #include <linux/slab.h>
 #include <linux/spinlock.h>
 
-#include "gpiolib.h"
 #include "gpiolib-acpi.h"
 
 #define GPIO_SWPORTA_DR		0x00
-- 
2.39.2
Re: [PATCH] gpio: dwapb: don't include gpiolib.h
Posted by Linus Walleij 2 years, 3 months ago
On Wed, Sep 6, 2023 at 4:50 PM Bartosz Golaszewski <brgl@bgdev.pl> wrote:

> From: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
>
> The gpiolib.h is unnecessarily included in the driver. None of its
> symbols are used so drop it.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>

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

Yours,
Linus Walleij