misc: tifm: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 23 Sep 2013 01:35:06 +0000 (10:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Sep 2013 16:13:53 +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/tifm_7xx1.c

index f8d6654391e5df35f13ec7b7e825baf3710baee6..ae282a1004295157a7e0e8667fac515e5fdc476c 100644 (file)
@@ -378,7 +378,6 @@ err_out_irq:
 err_out_unmap:
        iounmap(fm->addr);
 err_out_free:
-       pci_set_drvdata(dev, NULL);
        tifm_free_adapter(fm);
 err_out_int:
        pci_intx(dev, 0);
@@ -405,8 +404,6 @@ static void tifm_7xx1_remove(struct pci_dev *dev)
        for (cnt = 0; cnt < fm->num_sockets; cnt++)
                tifm_7xx1_sock_power_off(tifm_7xx1_sock_addr(fm->addr, cnt));
 
-       pci_set_drvdata(dev, NULL);
-
        iounmap(fm->addr);
        pci_intx(dev, 0);
        pci_release_regions(dev);