Skip to content
Snippets Groups Projects
Commit 7c1fb0a7 authored by Kever Yang's avatar Kever Yang Committed by Simon Glass
Browse files

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: default avatarKever Yang <kever.yang@rock-chips.com>
Acked-by: default avatarSimon Glass <sjg@chromium.org>
parent c4a92151
No related branches found
No related tags found
No related merge requests found
...@@ -111,6 +111,7 @@ U_BOOT_DRIVER(pmic_rk8xx) = { ...@@ -111,6 +111,7 @@ U_BOOT_DRIVER(pmic_rk8xx) = {
#if CONFIG_IS_ENABLED(PMIC_CHILDREN) #if CONFIG_IS_ENABLED(PMIC_CHILDREN)
.bind = rk8xx_bind, .bind = rk8xx_bind,
#endif #endif
.priv_auto_alloc_size = sizeof(struct rk8xx_priv),
.probe = rk8xx_probe, .probe = rk8xx_probe,
.ops = &rk8xx_ops, .ops = &rk8xx_ops,
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment