io-domain: rockchip: fix data abort

Stack:
       [< 0041e1ae >]  dev_get_driver_ops+0x4/0x8
       [< 0043fdb5 >]  regulator_get_value+0x9/0x1c
       [< 0043f42b >]  rockchip_iodomain_probe+0x9b/0x114
       [< 0041e07f >]  device_probe+0x14b/0x184
       [< 0041e9ff >]  uclass_get_device_tail+0xd/0x16
       [< 0041eb73 >]  uclass_first_device+0x1b/0x1e
       [< 0043f34f >]  io_domain_init+0x17/0x34
       [< 0040231f >]  board_init+0x7f/0xa0
       [< 0044fe6d >]  initcall_run_list+0x35/0x50
       [< 0040f839 >]  board_init_r+0x15/0x1c
       [< 0040f825 >]  board_init_r+0x1/0x1c

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I6864771eb1ffa4ae2ef92e712a503e8048774435
This commit is contained in:
Joseph Chen 2020-08-05 11:02:28 +08:00
parent c7bb7b9f0a
commit 9ed86f1004
1 changed files with 1 additions and 1 deletions

View File

@ -490,7 +490,7 @@ static const struct rockchip_iodomain_soc_data soc_data_rv1126_pmu = {
static struct udevice *of_get_regulator(ofnode node, const char *supply)
{
char sname[32]; /* 32 is max size of property name */
struct udevice *sudev;
struct udevice *sudev = NULL;
ofnode snode;
u32 phandle;
int ret;