|
@@ -784,7 +784,7 @@ static int __devinit lp5521_probe(struct i2c_client *client,
|
|
|
* otherwise further access to the R G B channels in the
|
|
|
* LP5521_REG_ENABLE register will not have any effect - strange!
|
|
|
*/
|
|
|
- lp5521_read(client, LP5521_REG_R_CURRENT, &buf);
|
|
|
+ ret = lp5521_read(client, LP5521_REG_R_CURRENT, &buf);
|
|
|
if (buf != LP5521_REG_R_CURR_DEFAULT) {
|
|
|
dev_err(&client->dev, "error in resetting chip\n");
|
|
|
goto fail2;
|