pcmcia: at91_cf: move definitions locally
authorAlexandre Belloni <alexandre.belloni@bootlin.com>
Wed, 30 Sep 2020 18:48:02 +0000 (20:48 +0200)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Fri, 27 Nov 2020 21:25:07 +0000 (22:25 +0100)
struct at91_cf_data is only used in the driver since all the platforms moved
to device tree, move its definition locally.

Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200930184804.3127757-1-alexandre.belloni@bootlin.com
drivers/pcmcia/at91_cf.c
include/linux/platform_data/atmel.h

index 7db0e9c..ed60c4d 100644 (file)
@@ -13,7 +13,6 @@
 #include <linux/interrupt.h>
 #include <linux/slab.h>
 #include <linux/gpio.h>
-#include <linux/platform_data/atmel.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
 #include <linux/mfd/syscon.h>
 #define        CF_IO_PHYS      (1 << 23)
 #define        CF_MEM_PHYS     (0x017ff800)
 
+struct at91_cf_data {
+       int     irq_pin;                /* I/O IRQ */
+       int     det_pin;                /* Card detect */
+       int     vcc_pin;                /* power switching */
+       int     rst_pin;                /* card reset */
+       u8      chipselect;             /* EBI Chip Select number */
+       u8      flags;
+#define AT91_CF_TRUE_IDE       0x01
+#define AT91_IDE_SWAP_A0_A2    0x02
+};
+
 struct regmap *mc;
 
 /*--------------------------------------------------------------------------*/
index 99e6069..73f63be 100644 (file)
@@ -6,18 +6,6 @@
 #ifndef __ATMEL_H__
 #define __ATMEL_H__
 
- /* Compact Flash */
-struct at91_cf_data {
-       int     irq_pin;                /* I/O IRQ */
-       int     det_pin;                /* Card detect */
-       int     vcc_pin;                /* power switching */
-       int     rst_pin;                /* card reset */
-       u8      chipselect;             /* EBI Chip Select number */
-       u8      flags;
-#define AT91_CF_TRUE_IDE       0x01
-#define AT91_IDE_SWAP_A0_A2    0x02
-};
-
 /* FIXME: this needs a better location, but gets stuff building again */
 #ifdef CONFIG_ATMEL_PM
 extern int at91_suspend_entering_slow_clock(void);