Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: da9055: Do not hardcode return value

Propagate the error value returned by the function instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Sachin Kamat and committed by
Mark Brown
fe2eb722 a4b4e66a

+1 -1
+1 -1
drivers/regulator/da9055-regulator.c
··· 567 567 of_node_put(nproot); 568 568 if (ret < 0) { 569 569 dev_err(&pdev->dev, "Error matching regulator: %d\n", ret); 570 - return -ENODEV; 570 + return ret; 571 571 } 572 572 573 573 config->init_data = da9055_reg_matches[regid].init_data;