mtd: fsl_ifc_nand: Remove redundant dev_set_drvdata
authorSachin Kamat <sachin.kamat@linaro.org>
Tue, 8 Oct 2013 09:38:19 +0000 (15:08 +0530)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 Nov 2013 07:32:49 +0000 (23:32 -0800)
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>
drivers/mtd/nand/fsl_ifc_nand.c

index 47acda6c4e924359301697681c00aaef83a1231c..64a30ef1421caf027ab27ce497b18b2506b01a8b 100644 (file)
@@ -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;
 }