video: mtl017: Make sure errno is not used as a regulator pointer
Since regulator_get() can return an errno via regulator pointer, we
need to make sure we handle that case without passing bogus pointers
around.

Add code to convert mtl017->regulator to a dummy regulator if
regulator_get() fails.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ac6bbe6 commit 426ba13f41e59151dce5d20dca1d4279192b60dc
@Andrey Smirnov Andrey Smirnov authored on 13 Dec 2018
Sascha Hauer committed on 17 Dec 2018
Showing 1 changed file
View
drivers/video/mtl017.c