Skip to content

Commit 29a7588

Browse files
committed
HACK: rpi-panel-attiny-regulator: Ignore probe result and always succeed.
1 parent d23e37e commit 29a7588

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/regulator/rpi-panel-attiny-regulator.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ static int attiny_i2c_probe(struct i2c_client *i2c,
296296
ret = attiny_i2c_read(i2c, REG_ID, &data);
297297
if (ret < 0) {
298298
dev_err(&i2c->dev, "Failed to read REG_ID reg: %d\n", ret);
299-
goto error;
299+
//goto error;
300300
}
301301

302302
switch (data) {
@@ -305,8 +305,8 @@ static int attiny_i2c_probe(struct i2c_client *i2c,
305305
break;
306306
default:
307307
dev_err(&i2c->dev, "Unknown Atmel firmware revision: 0x%02x\n", data);
308-
ret = -ENODEV;
309-
goto error;
308+
//ret = -ENODEV;
309+
//goto error;
310310
}
311311

312312
regmap_write(regmap, REG_POWERON, 0);

0 commit comments

Comments
 (0)