mtd: fsl_ifc_nand: Remove redundant dev_set_drvdata
Driver core will set the driver data to NULL upon detach or probe failure. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
b38be28814
commit
bcecd39ef0
|
@ -905,7 +905,6 @@ static int fsl_ifc_chip_remove(struct fsl_ifc_mtd *priv)
|
||||||
iounmap(priv->vbase);
|
iounmap(priv->vbase);
|
||||||
|
|
||||||
ifc_nand_ctrl->chips[priv->bank] = NULL;
|
ifc_nand_ctrl->chips[priv->bank] = NULL;
|
||||||
dev_set_drvdata(priv->dev, NULL);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue