This patch remove warning:
drivers/mtd/spi/sf_probe.c: In function 'spi_flash_validate_params':
drivers/mtd/spi/sf_probe.c:215:4: warning: return makes integer from
pointer without a cast [enabled by default]
return NULL;
^
drivers/mtd/spi/sf_probe.c:223:5: warning: return makes integer from
pointer without a cast [enabled by default]
return NULL;
^
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
(flash->write_cmd == CMD_QUAD_PAGE_PROGRAM)) {
if (spi_flash_set_qeb(flash, idcode[0])) {
debug("SF: Fail to set QEB for %02x\n", idcode[0]);
- return NULL;
+ return 0;
}
#ifdef CONFIG_SF_DUAL_FLASH
if (flash->dual_flash & SF_DUAL_STACKED_FLASH) {
if (spi_flash_set_qeb(flash, idcode[0])) {
debug("SF: Fail to set QEB Upper Flash %02x\n",
idcode[0]);
- return NULL;
+ return 0;
}
flash->spi->flags &= ~SPI_XFER_U_PAGE;
}