sata_dwc_460ex: remove redundant dev_set_drvdata
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 7 Jan 2015 13:24:20 +0000 (15:24 +0200)
committerTejun Heo <tj@kernel.org>
Thu, 8 Jan 2015 13:26:53 +0000 (08:26 -0500)
Driver core sets it to NULL upon probe failure or release.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/sata_dwc_460ex.c

index 8e8248179d20577cf83d0270e324d1a867554554..5c343955814422e303c65a291d911e34841777ab 100644 (file)
@@ -1783,7 +1783,6 @@ static int sata_dwc_remove(struct platform_device *ofdev)
        struct sata_dwc_device *hsdev = host->private_data;
 
        ata_host_detach(host);
-       dev_set_drvdata(dev, NULL);
 
        /* Free SATA DMA resources */
        dma_dwc_exit(hsdev);