From: Johan Jonker Date: Mon, 13 Mar 2023 00:28:06 +0000 (+0100) Subject: mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=40a135108050d019063c57c8126bdf75dbc260ee;p=u-boot.git mtd: nand: raw: rockchip_nfc: use dev_read_addr_ptr The fdt_addr_t and phys_addr_t size have been decoupled. A 32bit CPU can expext 64-bit data from the device tree parser, so use dev_read_addr_ptr in the rockchip_nfc.c file. Signed-off-by: Johan Jonker Reviewed-by: Michael Trimarchi --- diff --git a/drivers/mtd/nand/raw/rockchip_nfc.c b/drivers/mtd/nand/raw/rockchip_nfc.c index d016d25575..9f424a254e 100644 --- a/drivers/mtd/nand/raw/rockchip_nfc.c +++ b/drivers/mtd/nand/raw/rockchip_nfc.c @@ -1180,9 +1180,9 @@ static int rk_nfc_probe(struct udevice *dev) nfc->cfg = (void *)dev_get_driver_data(dev); nfc->dev = dev; - nfc->regs = (void *)dev_read_addr(dev); - if (IS_ERR(nfc->regs)) { - ret = PTR_ERR(nfc->regs); + nfc->regs = dev_read_addr_ptr(dev); + if (!nfc->regs) { + ret = -EINVAL; goto release_nfc; }