]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
parport_pc: remove unnecessary pci_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Mon, 25 Nov 2013 02:17:57 +0000 (11:17 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Dec 2013 07:04:38 +0000 (23:04 -0800)
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/parport/parport_pc.c

index 4b03dc5d571b991c5f245cf174d37b766e273cef..a62d13155a86dcb44071ef139ccab03859bd0b3b 100644 (file)
@@ -2862,8 +2862,6 @@ static void parport_pc_pci_remove(struct pci_dev *dev)
        struct pci_parport_data *data = pci_get_drvdata(dev);
        int i;
 
-       pci_set_drvdata(dev, NULL);
-
        if (data) {
                for (i = data->num - 1; i >= 0; i--)
                        parport_pc_unregister_port(data->ports[i]);