regulator: pca9450: Fix return value when failing to get sd-vsel GPIO
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 22 Feb 2021 15:08:04 +0000 (16:08 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 24 Feb 2021 13:24:28 +0000 (13:24 +0000)
commitef4848a6532ba0b241d3b6cad70378ff2c5615ca
treedc8bcc5d29a4a0385e972da5017d05bd95206e65
parentbe86c3fd26c708da4bef59162efd41ec4f4666c5
regulator: pca9450: Fix return value when failing to get sd-vsel GPIO

This fixes the return value of pca9450_i2c_probe() to use the correct
error code when getting the sd-vsel GPIO fails.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20210222150809.208942-1-frieder.schrempf@kontron.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/pca9450-regulator.c