diff options
author | Andreas Schallenberg <Andreas.Schallenberg@3alitydigital.de> | 2011-01-18 14:43:27 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-18 03:49:25 -0400 |
commit | adfe6a4882ec8324d7f5be8cca8d8e59b8a8dfa0 (patch) | |
tree | adebb46cd124e70ea03691a1042f5c37fee49862 /arch | |
parent | b5fc12df9039a9e6a2c5ae1fc0cee244b6aca8e2 (diff) |
Blackfin: dnp5370: drop MMC card detect support
The board doesn't actually have a pin hooked up to do card detection,
so punt the code for it.
Signed-off-by: Andreas Schallenberg <Andreas.Schallenberg@3alitydigital.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/mach-bf537/boards/dnp5370.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/arch/blackfin/mach-bf537/boards/dnp5370.c b/arch/blackfin/mach-bf537/boards/dnp5370.c index e1e9ea02ad89..6b4ff4605bff 100644 --- a/arch/blackfin/mach-bf537/boards/dnp5370.c +++ b/arch/blackfin/mach-bf537/boards/dnp5370.c | |||
@@ -128,30 +128,11 @@ static struct platform_device asmb_flash_device = { | |||
128 | 128 | ||
129 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) | 129 | #if defined(CONFIG_MMC_SPI) || defined(CONFIG_MMC_SPI_MODULE) |
130 | 130 | ||
131 | #define MMC_SPI_CARD_DETECT_INT IRQ_PF5 | ||
132 | |||
133 | static int bfin_mmc_spi_init(struct device *dev, | ||
134 | irqreturn_t (*detect_int)(int, void *), void *data) | ||
135 | { | ||
136 | return request_irq(MMC_SPI_CARD_DETECT_INT, detect_int, | ||
137 | IRQF_TRIGGER_FALLING, "mmc-spi-detect", data); | ||
138 | } | ||
139 | |||
140 | static void bfin_mmc_spi_exit(struct device *dev, void *data) | ||
141 | { | ||
142 | free_irq(MMC_SPI_CARD_DETECT_INT, data); | ||
143 | } | ||
144 | |||
145 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { | 131 | static struct bfin5xx_spi_chip mmc_spi_chip_info = { |
146 | .enable_dma = 0, /* use no dma transfer with this chip*/ | 132 | .enable_dma = 0, /* use no dma transfer with this chip*/ |
147 | .bits_per_word = 8, | 133 | .bits_per_word = 8, |
148 | }; | 134 | }; |
149 | 135 | ||
150 | static struct mmc_spi_platform_data bfin_mmc_spi_pdata = { | ||
151 | .init = bfin_mmc_spi_init, | ||
152 | .exit = bfin_mmc_spi_exit, | ||
153 | .detect_delay = 100, /* msecs */ | ||
154 | }; | ||
155 | #endif | 136 | #endif |
156 | 137 | ||
157 | #if defined(CONFIG_MTD_DATAFLASH) || defined(CONFIG_MTD_DATAFLASH_MODULE) | 138 | #if defined(CONFIG_MTD_DATAFLASH) || defined(CONFIG_MTD_DATAFLASH_MODULE) |
@@ -192,7 +173,6 @@ static struct spi_board_info bfin_spi_board_info[] __initdata = { | |||
192 | .max_speed_hz = 20000000, | 173 | .max_speed_hz = 20000000, |
193 | .bus_num = 0, | 174 | .bus_num = 0, |
194 | .chip_select = 1, | 175 | .chip_select = 1, |
195 | .platform_data = &bfin_mmc_spi_pdata, | ||
196 | .controller_data = &mmc_spi_chip_info, | 176 | .controller_data = &mmc_spi_chip_info, |
197 | .mode = SPI_MODE_3, | 177 | .mode = SPI_MODE_3, |
198 | }, | 178 | }, |