misc: mei: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 23 Sep 2013 01:37:24 +0000 (10:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 16:13:54 +0000 (09:13 -0700)
The driver core clears the driver data to NULL after device_release
or on probe failure. Thus, it is not needed to manually clear the
device driver data to NULL.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/pci-me.c

index 1b3844e823792a0893ee9b200cbc7a681ee7025f..1b8a4c6d0cf88a662d08edccfe79784dd1c66d8a 100644 (file)
@@ -239,7 +239,6 @@ static void mei_me_remove(struct pci_dev *pdev)
 
        free_irq(pdev->irq, dev);
        pci_disable_msi(pdev);
-       pci_set_drvdata(pdev, NULL);
 
        if (hw->mem_addr)
                pci_iounmap(pdev, hw->mem_addr);