|
@@ -236,7 +236,12 @@ static void __ads7846_disable(struct ads7846 *ts)
|
|
|
/* Must be called with ts->lock held */
|
|
|
static void __ads7846_enable(struct ads7846 *ts)
|
|
|
{
|
|
|
- regulator_enable(ts->reg);
|
|
|
+ int error;
|
|
|
+
|
|
|
+ error = regulator_enable(ts->reg);
|
|
|
+ if (error != 0)
|
|
|
+ dev_err(&ts->spi->dev, "Failed to enable supply: %d\n", error);
|
|
|
+
|
|
|
ads7846_restart(ts);
|
|
|
}
|
|
|
|