]> git.baikalelectronics.ru Git - uboot.git/commit
of: addr: Remove call to dev_count_cells() in of_get_address()
authorBin Meng <bmeng.cn@gmail.com>
Fri, 30 Apr 2021 13:16:59 +0000 (21:16 +0800)
committerSimon Glass <sjg@chromium.org>
Sat, 5 Jun 2021 13:35:34 +0000 (07:35 -0600)
commitc7e24382ef0775752cc8cf24fa4de1430ce37f50
tree137d750fb9d6d42e7f143fe610309562a2e84495
parent3d198db4c813e0a1be20116d3da7442883c6355c
of: addr: Remove call to dev_count_cells() in of_get_address()

In of_get_address(), there is:

  dev_count_cells(dev, &na, &ns);

followed by:

  bus->count_cells(dev, &na, &ns);

but no codes in between use na/ns, hence the first call is useless.
By dropping the first call, dev_count_cells() is now useless too.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/of_addr.c