gpio: pl061: move platform data into driver
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Nov 2016 09:53:39 +0000 (10:53 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 7 Dec 2016 14:22:50 +0000 (15:22 +0100)
No boardfile defines any PL061 platform data anymore: the
Integrator IM/PD-1 includes the file but is not making use
of the struct. Let's delete the include and all references,
then move the platform data into the driver for later
consolidation into the driver state container.

The only resource defined by the IM/PD-1 is the IRQ which
is passed through the AMBA PrimeCell bus abstraction
struct amba_device.

Cc: arm@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: Russell King <linux@armlinux.org.uk>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/mach-integrator/impd1.c
drivers/gpio/gpio-pl061.c
include/linux/amba/pl061.h [deleted file]

index ed9a014840309049a70c1fc3c7771425b4b706d8..a109f6482413660bf455e9573d8e59d4e7a8a0e7 100644 (file)
@@ -21,7 +21,6 @@
 #include <linux/amba/bus.h>
 #include <linux/amba/clcd.h>
 #include <linux/amba/mmci.h>
-#include <linux/amba/pl061.h>
 #include <linux/io.h>
 #include <linux/platform_data/clk-integrator.h>
 #include <linux/slab.h>
index 47f39723641706298ad5080e9d381db598fa04bf..cbcc631181e0a9f8c5713733670f0f735977ddb1 100644 (file)
@@ -23,7 +23,6 @@
 #include <linux/gpio.h>
 #include <linux/device.h>
 #include <linux/amba/bus.h>
-#include <linux/amba/pl061.h>
 #include <linux/slab.h>
 #include <linux/pinctrl/consumer.h>
 #include <linux/pm.h>
 
 #define PL061_GPIO_NR  8
 
+struct pl061_platform_data {
+       /* number of the first GPIO */
+       unsigned        gpio_base;
+
+       /* number of the first IRQ.
+        * If the IRQ functionality in not desired this must be set to 0.
+        */
+       unsigned        irq_base;
+
+       u8              directions;     /* startup directions, 1: out, 0: in */
+       u8              values;         /* startup values */
+};
+
 #ifdef CONFIG_PM
 struct pl061_context_save_regs {
        u8 gpio_data;
diff --git a/include/linux/amba/pl061.h b/include/linux/amba/pl061.h
deleted file mode 100644 (file)
index fb83c04..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <linux/types.h>
-
-/* platform data for the PL061 GPIO driver */
-
-struct pl061_platform_data {
-       /* number of the first GPIO */
-       unsigned        gpio_base;
-
-       /* number of the first IRQ.
-        * If the IRQ functionality in not desired this must be set to 0.
-        */
-       unsigned        irq_base;
-
-       u8              directions;     /* startup directions, 1: out, 0: in */
-       u8              values;         /* startup values */
-};