From 7c1fb0a794791c7fea3d0d37f4f54d6ce9177e6f Mon Sep 17 00:00:00 2001 From: Kever Yang Date: Fri, 5 May 2017 14:50:56 +0800 Subject: [PATCH] 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 Acked-by: Simon Glass --- drivers/power/pmic/rk8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/pmic/rk8xx.c b/drivers/power/pmic/rk8xx.c index 09b9b54c62..eb3ec0f601 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, }; -- 2.39.5