diff options
Diffstat (limited to 'drivers/hwmon/sht15.c')
-rw-r--r-- | drivers/hwmon/sht15.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c index 8047fed..1c85d39 100644 --- a/drivers/hwmon/sht15.c +++ b/drivers/hwmon/sht15.c @@ -926,13 +926,7 @@ static int sht15_probe(struct platform_device *pdev) if (voltage) data->supply_uV = voltage; - ret = regulator_enable(data->reg); - if (ret != 0) { - dev_err(&pdev->dev, - "failed to enable regulator: %d\n", ret); - return ret; - } - + regulator_enable(data->reg); /* * Setup a notifier block to update this if another device * causes the voltage to change |