|
@@ -887,8 +887,10 @@ static int twl4030_madc_probe(struct platform_device *pdev)
|
|
|
|
|
|
/* Enable 3v1 bias regulator for MADC[3:6] */
|
|
/* Enable 3v1 bias regulator for MADC[3:6] */
|
|
madc->usb3v1 = devm_regulator_get(madc->dev, "vusb3v1");
|
|
madc->usb3v1 = devm_regulator_get(madc->dev, "vusb3v1");
|
|
- if (IS_ERR(madc->usb3v1))
|
|
|
|
- return -ENODEV;
|
|
|
|
|
|
+ if (IS_ERR(madc->usb3v1)) {
|
|
|
|
+ ret = -ENODEV;
|
|
|
|
+ goto err_i2c;
|
|
|
|
+ }
|
|
|
|
|
|
ret = regulator_enable(madc->usb3v1);
|
|
ret = regulator_enable(madc->usb3v1);
|
|
if (ret)
|
|
if (ret)
|