mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-26 06:30:39 +00:00
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 <jbx6244@gmail.com> Reviewed-by: Michael Trimarchi <michael@amarulasolutions.com>
This commit is contained in:
parent
ab75996ba4
commit
40a1351080
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue