mfd: mc12xx-i2c: rtsx_pcr: ti-ssp: Remove redundant dev_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:

committed by
Lee Jones

vanhempi
bef7816176
commit
af1192d769
@@ -78,7 +78,6 @@ static int mc13xxx_i2c_probe(struct i2c_client *client,
|
||||
ret = PTR_ERR(mc13xxx->regmap);
|
||||
dev_err(mc13xxx->dev, "Failed to initialize register map: %d\n",
|
||||
ret);
|
||||
dev_set_drvdata(&client->dev, NULL);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Viittaa uudesa ongelmassa
Block a user