]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Call ofdata_to_platdata() with of-platdata
authorSimon Glass <sjg@chromium.org>
Wed, 25 Sep 2019 14:55:53 +0000 (08:55 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Tue, 8 Oct 2019 05:57:38 +0000 (13:57 +0800)
commit23b451c462fbbb6a7a38a52dec8e7bc1f61c3847
treeb2bd1cbbcd766181bccbd79d58bb55133271a9b8
parent3fe2c70919df4a53f0d322cdc912232504b6cb82
dm: core: Call ofdata_to_platdata() with of-platdata

At present this function is never called when of-platdata is enabled since
we never have a device tree. However, this function is responsible for
copying over the of-platdata, so we must call it. Otherwise the probe()
method would have to be used.

Correct this and fix the sandbox serial driver to not read from the device
tree and try to write to what is read-only platdata on some platforms.

Fixes: cdea61dee1 (dm: core: Allow binding a device from a live tree)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
drivers/core/device.c
drivers/serial/sandbox.c