Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
- serial: sh: Fix dev_read_addr error check
This commit is contained in:
@@ -257,7 +257,7 @@ static int sh_serial_of_to_plat(struct udevice *dev)
|
||||
int ret;
|
||||
|
||||
addr = dev_read_addr(dev);
|
||||
if (!addr)
|
||||
if (addr == FDT_ADDR_T_NONE)
|
||||
return -EINVAL;
|
||||
|
||||
plat->base = addr;
|
||||
|
||||
Reference in New Issue
Block a user