regulator: gpio-regulator: Don't oops on missing regulator-type property
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 9 Nov 2013 12:12:28 +0000 (13:12 +0100)
committerMark Brown <broonie@linaro.org>
Sat, 9 Nov 2013 15:06:22 +0000 (15:06 +0000)
Catch missing regulator-type property in DT and return an error
gracefully instead of deferencing a NULL pointer and crashing.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

No differences found