From: Sachin Kamat Date: Tue, 8 Oct 2013 09:38:19 +0000 (+0530) Subject: mtd: fsl_ifc_nand: Remove redundant dev_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bcecd39ef06ecf27233a30d516367d0be7e9145f;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Brian Norris --- diff --git a/drivers/mtd/nand/fsl_ifc_nand.c b/drivers/mtd/nand/fsl_ifc_nand.c index 47acda6c4e92..64a30ef1421c 100644 --- a/drivers/mtd/nand/fsl_ifc_nand.c +++ b/drivers/mtd/nand/fsl_ifc_nand.c @@ -905,7 +905,6 @@ static int fsl_ifc_chip_remove(struct fsl_ifc_mtd *priv) iounmap(priv->vbase); ifc_nand_ctrl->chips[priv->bank] = NULL; - dev_set_drvdata(priv->dev, NULL); return 0; }