]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/nand/lpc32xx_slc.c
mtd: nand: lpc32xx: remove unnecessary platform_set_drvdata()
[karo-tx-linux.git] / drivers / mtd / nand / lpc32xx_slc.c
index be94ed5abefb74aebde118529cf5eca82abe876e..a66f33f259741f21cd45a44bfc04b93ab939eb36 100644 (file)
@@ -936,7 +936,6 @@ err_exit3:
 err_exit2:
        clk_disable(host->clk);
        clk_put(host->clk);
-       platform_set_drvdata(pdev, NULL);
 err_exit1:
        lpc32xx_wp_enable(host);
        gpio_free(host->ncfg->wp_gpio);
@@ -963,7 +962,6 @@ static int lpc32xx_nand_remove(struct platform_device *pdev)
 
        clk_disable(host->clk);
        clk_put(host->clk);
-       platform_set_drvdata(pdev, NULL);
        lpc32xx_wp_enable(host);
        gpio_free(host->ncfg->wp_gpio);