This patch removes compilation warning:
+../drivers/mtd/spi/sf_probe.c: In function
'spi_flash_validate_params':
+../drivers/mtd/spi/sf_probe.c:402:3: warning: implicit declaration of
function 'spi_flash_cmd_bp_unlock' [-Wimplicit-function-declaration]
Also add missing flash parameter:
+../drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
+../drivers/mtd/spi/sf_probe.c:402:3: error: too few arguments to
function 'spi_flash_cmd_bp_unlock'
+ ret = spi_flash_cmd_bp_unlock();
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
return spi_flash_cmd(flash->spi, CMD_WRITE_DISABLE, NULL, 0);
}
+int spi_flash_cmd_bp_unlock(struct spi_flash *flash);
+
/*
* Send the read status command to the device and wait for the wip
* (write-in-progress) bit to clear itself.
#if defined(CONFIG_SPI_FLASH_SST)
if(params->flags == SST_LOCKBP) {
int ret;
- ret = spi_flash_cmd_bp_unlock();
+ ret = spi_flash_cmd_bp_unlock(flash);
if (ret) {
debug("SF: fail to unlock block protection\n");
return ret;