[PATCH 18/21] sandbox: pmic: Correct i2c pmic emulator platdata method

sjg at google.com sjg at google.com
Wed Feb 5 18:55:06 CET 2020


This currently reads the uclass's private data in the ofdata_to_platdata
method which is not allowed, since the uclass has not read it from the
device tree. This happens in the probe method.

Fix it by adding a probe() method and moving the code there.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 drivers/power/pmic/i2c_pmic_emul.c | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list