Skip to contentSkip to conversation

ARM: OMAP: PCM051: Remove spi platform data

PATCH Applied Teresa Gámez 2 participants 2 messages Aug 26, 2013 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: PCM051: Remove spi platform data

SPI NOR flash can be detected by driver so no platform data is necessary.

---
 arch/arm/boards/pcm051/board.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
arch/arm/boards/pcm051/board.c +0 -6
index 1993f34..4a740c8 100644
@@ -66,11 +66,6 @@ static int pcm051_mem_init(void)
 }
 mem_initcall(pcm051_mem_init);
 
-static struct flash_platform_data pcm051_spi_flash = {
-	.name	= "m25p",
-	.type	= "w25q64",
-};
-
 /*
 * SPI Flash works at 80Mhz however the SPI controller runs with 48MHz.
 * So setup Max speed to be less than the controller speed.
@@ -78,7 +73,6 @@ static struct flash_platform_data pcm051_spi_flash = {
 static struct spi_board_info pcm051_spi_board_info[] = {
 	{
 		.name		= "m25p80",
-		.platform_data	= &pcm051_spi_flash,
 		.max_speed_hz	= 24000000,
 		.bus_num	= 0,
 		.chip_select	= 0,
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Teresa Gámez

SPI NOR flash can be detected by driver so no platform data is necessary.

Applied, thanks

Sascha

Quoted 36 lines
---
 arch/arm/boards/pcm051/board.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
arch/arm/boards/pcm051/board.c +0 -6
index 1993f34..4a740c8 100644
@@ -66,11 +66,6 @@ static int pcm051_mem_init(void)
 }
 mem_initcall(pcm051_mem_init);
 
-static struct flash_platform_data pcm051_spi_flash = {
-	.name	= "m25p",
-	.type	= "w25q64",
-};
-
 /*
 * SPI Flash works at 80Mhz however the SPI controller runs with 48MHz.
 * So setup Max speed to be less than the controller speed.
@@ -78,7 +73,6 @@ static struct flash_platform_data pcm051_spi_flash = {
 static struct spi_board_info pcm051_spi_board_info[] = {
 	{
 		.name		= "m25p80",
-		.platform_data	= &pcm051_spi_flash,
 		.max_speed_hz	= 24000000,
 		.bus_num	= 0,
 		.chip_select	= 0,
Signature · 7 lines
1.7.0.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox