@@ -127,13 +127,8 @@ static struct gpiod_lookup_table edb93xx_gpios_table = {
},
};
-static int edb93xx_spi_chipselects[] __initdata = {
- EP93XX_GPIO_LINE_EGPIO6,
-};
-
static struct ep93xx_spi_info edb93xx_spi_info __initdata = {
- .chipselect = edb93xx_spi_chipselects,
- .num_chipselect = ARRAY_SIZE(edb93xx_spi_chipselects),
+ .num_chipselect = 1,
};
static void __init edb93xx_register_spi(void)
@@ -129,13 +129,8 @@ static struct gpiod_lookup_table simone_gpios_table = {
},
};
-static int simone_spi_chipselects[] __initdata = {
- EP93XX_GPIO_LINE_EGPIO1,
-};
-
static struct ep93xx_spi_info simone_spi_info __initdata = {
- .chipselect = simone_spi_chipselects,
- .num_chipselect = ARRAY_SIZE(simone_spi_chipselects),
+ .num_chipselect = 1,
.use_dma = 1,
};
@@ -256,15 +256,8 @@ static struct gpiod_lookup_table vision_gpios_table = {
},
};
-static int vision_spi_chipselects[] __initdata = {
- EP93XX_GPIO_LINE_EGPIO6,
- EP93XX_GPIO_LINE_EGPIO7,
- EP93XX_GPIO_LINE_G(2),
-};
-
static struct ep93xx_spi_info vision_spi_master __initdata = {
- .chipselect = vision_spi_chipselects,
- .num_chipselect = ARRAY_SIZE(vision_spi_chipselects),
+ .num_chipselect = 3,
.use_dma = 1,
};
@@ -5,12 +5,10 @@ struct spi_device;
/**
* struct ep93xx_spi_info - EP93xx specific SPI descriptor
- * @chipselect: array of gpio numbers to use as chip selects
- * @num_chipselect: ARRAY_SIZE(chipselect)
+ * @num_chipselect: number chip selects supported
* @use_dma: use DMA for the transfers
*/
struct ep93xx_spi_info {
- int *chipselect;
int num_chipselect;
bool use_dma;
};
Now that the driver has been updated to use gpiod there is no need to have platform data to define the SPI chipselects. We still need to define the number of chipselects used. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> --- arch/arm/mach-ep93xx/edb93xx.c | 7 +------ arch/arm/mach-ep93xx/simone.c | 7 +------ arch/arm/mach-ep93xx/vision_ep9307.c | 9 +-------- include/linux/platform_data/spi-ep93xx.h | 4 +--- 4 files changed, 4 insertions(+), 23 deletions(-)