| Submitter | Luis Henriques |
|---|---|
| Date | March 14, 2013, 10:35 a.m. |
| Message ID | <1363257381-15900-67-git-send-email-luis.henriques@canonical.com> |
| Download | mbox | patch |
| Permalink | /patch/227600/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c index 8b011d0..eb01802 100644 --- a/drivers/hwmon/sht15.c +++ b/drivers/hwmon/sht15.c @@ -926,7 +926,13 @@ static int __devinit sht15_probe(struct platform_device *pdev) if (voltage) data->supply_uV = voltage; - regulator_enable(data->reg); + ret = regulator_enable(data->reg); + if (ret != 0) { + dev_err(&pdev->dev, + "failed to enable regulator: %d\n", ret); + return ret; + } + /* * Setup a notifier block to update this if another device * causes the voltage to change