regulator: tps6507x: Fix boot regression due to testing wrong init_data pointer
authorAxel Lin <axel.lin@ingics.com>
Thu, 16 May 2019 12:48:08 +0000 (20:48 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 16 May 2019 16:11:47 +0000 (17:11 +0100)
commit7d293f56456120efa97c4e18250d86d2a05ad0bd
tree4fb701da8e5a8afcffb48b122e667bbae5ab95d1
parent498209445124920b365ef43aac93d6f1acbaa1b7
regulator: tps6507x: Fix boot regression due to testing wrong init_data pointer

A NULL init_data once incremented will lead to oops, fix it.

Fixes: f979c08f7624 ("regulator: tps6507x: Convert to regulator core's simplified DT parsing code")
Reported-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Tested-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/tps6507x-regulator.c