diff options
author | Kever Yang <kever.yang@rock-chips.com> | 2017-05-05 06:50:56 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-07 12:57:49 (GMT) |
commit | 7c1fb0a794791c7fea3d0d37f4f54d6ce9177e6f (patch) | |
tree | 44409e92aced56d7bda42b94a7bda96ba8710928 /drivers/power/pmic | |
parent | c4a921513a77e6be5c8fbf68df72deb899ce9c37 (diff) | |
download | u-boot-fsl-qoriq-7c1fb0a794791c7fea3d0d37f4f54d6ce9177e6f.tar.xz |
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>
Diffstat (limited to 'drivers/power/pmic')
-rw-r--r-- | drivers/power/pmic/rk8xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index 09b9b54..eb3ec0f 100644 --- a/drivers/power/pmic/rk8xx.c +++ b/drivers/power/pmic/rk8xx.c @@ -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, }; |