u-boot/drivers/mtd/nand
Pali Rohár ac30d240db mtd: rawnand: fsl_elbc: Fix reading address pointer from DT
During compilation gcc throws warning:

    drivers/mtd/nand/raw/fsl_elbc_nand.c: In function ‘fsl_elbc_nand_probe’:
    drivers/mtd/nand/raw/fsl_elbc_nand.c:841:31: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
      return fsl_elbc_chip_init(0, (void *)dev_read_addr(dev), dev);
                                   ^

Fix it by using dev_read_addr_ptr() function which returns pointer instead
of dev_read_addr() which returns integer type.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
2022-08-22 11:15:57 +02:00
..
raw mtd: rawnand: fsl_elbc: Fix reading address pointer from DT 2022-08-22 11:15:57 +02:00
spi mtd: spinand: macronix: Fix ECC Status Read 2021-10-08 17:59:34 +05:30
bbt.c Fix corner case in bad block table handling. 2020-08-04 23:30:02 -04:00
core.c mtd: nand: Add WATCHDOG_RESET() in nanddev_mtd_erase() 2021-03-11 16:59:16 +01:00
Kconfig mtd: nand: Add core infrastructure to support SPI NANDs 2018-09-20 20:10:49 +05:30
Makefile mtd: Makefile: deep cleanup 2019-12-04 17:10:51 -05:00