mirror of
https://github.com/u-boot/u-boot.git
synced 2024-12-16 16:23:33 +08:00
rockchip: rk8xx: allocate priv structure for driver
The rk8xx_priv structure need to allocate for driver, or else it will cause data abort when CPU access it. This is a bug fix for below patch set: https://www.mail-archive.com/u-boot@lists.denx.de/msg247345.html Signed-off-by: Kever Yang <kever.yang@rock-chips.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
c4a921513a
commit
7c1fb0a794
@ -111,6 +111,7 @@ U_BOOT_DRIVER(pmic_rk8xx) = {
|
||||
#if CONFIG_IS_ENABLED(PMIC_CHILDREN)
|
||||
.bind = rk8xx_bind,
|
||||
#endif
|
||||
.priv_auto_alloc_size = sizeof(struct rk8xx_priv),
|
||||
.probe = rk8xx_probe,
|
||||
.ops = &rk8xx_ops,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user