]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
sf: dataflash: Remove unneeded spi data
authorJagan Teki <jagan@openedev.com>
Sun, 30 Oct 2016 17:46:27 +0000 (23:16 +0530)
committerJagan Teki <jagan@openedev.com>
Sat, 19 Nov 2016 03:11:53 +0000 (08:41 +0530)
dataflash doesn't require options, memory_map from spi.

Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: York Sun <york.sun@nxp.com>
Signed-off-by: Jagan Teki <jagan@openedev.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mtd/spi/sf_dataflash.c

index b2a56da7cad688423d5639980b99cf0812badc44..6a9dfefcb0003d7c3cffa09b85de7e9c5fe1a1ed 100644 (file)
@@ -584,6 +584,7 @@ static int spi_dataflash_probe(struct udevice *dev)
        int ret, status = 0;
 
        spi_flash = dev_get_uclass_priv(dev);
+       spi_flash->spi = spi;
        spi_flash->dev = dev;
 
        ret = spi_claim_bus(spi);
@@ -664,11 +665,6 @@ static int spi_dataflash_probe(struct udevice *dev)
                }
        }
 
-       /* Assign spi data */
-       spi_flash->spi = spi;
-       spi_flash->memory_map = spi->memory_map;
-       spi_flash->dual_flash = spi->option;
-
        spi_release_bus(spi);
 
        return 0;