]> git.sur5r.net Git - u-boot/commit
sandbox: spi: Remove an incorrect free()
authorSimon Glass <sjg@chromium.org>
Wed, 24 Feb 2016 16:14:55 +0000 (09:14 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 26 Feb 2016 15:53:10 +0000 (08:53 -0700)
commitffe276d27a538ca410d697126c562a1ce0ac8bbc
tree072899c19ddc692f8107ce500fa439a35e70f241
parent20f655da11cdddfeb0814197f9b3c71d4d297061
sandbox: spi: Remove an incorrect free()

We must not free data that is managed by driver mode. Remove this line,
which is a hangover from the pre-driver-model code.

This fixes a problem where 'sf probe' crashes U-Boot if the backing file
for the SPI flash cannot be found.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
Tested-by: Jagan Teki <jteki@openedev.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
drivers/mtd/spi/sandbox.c