mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
sf: dataflash: Remove unneeded spi data
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>
This commit is contained in:
parent
20343ff3ad
commit
dc19b06ff2
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue