sf: Use spi_flash_alloc() in each SPI flash driver
authorSimon Glass <sjg@chromium.org>
Mon, 11 Mar 2013 06:08:03 +0000 (06:08 +0000)
committerSimon Glass <sjg@chromium.org>
Tue, 19 Mar 2013 15:45:36 +0000 (08:45 -0700)
commitc0f87dd4ffa0c012d1dc8f737412c58200a93c93
treead8bc5cfdeac09a81bde0f16626b0625d7bcc836
parentb5aec1424d191c51f694ba85d5577e7a635363d9
sf: Use spi_flash_alloc() in each SPI flash driver

Rather than each device having its own way to allocate a SPI flash
structure, use the new allocation function everywhere. This will make it
easier to extend the interface without breaking devices.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mtd/spi/atmel.c
drivers/mtd/spi/eon.c
drivers/mtd/spi/macronix.c
drivers/mtd/spi/ramtron.c
drivers/mtd/spi/spansion.c
drivers/mtd/spi/sst.c
drivers/mtd/spi/stmicro.c
drivers/mtd/spi/winbond.c