summaryrefslogtreecommitdiff
path: root/drivers/tty/serial/mfd.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-12 10:31:06 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-27 02:41:38 +0400
commitf8bf876209a9828a456a9ac09ef6369a007dda2d (patch)
tree2868a20790e6d07d87b2b9a26ffcbde710d5b285 /drivers/tty/serial/mfd.c
parenta50c44ce2463c427552bd0dab635d4980ed84131 (diff)
downloadlinux-f8bf876209a9828a456a9ac09ef6369a007dda2d.tar.xz
serial: mfd: remove unnecessary pci_set_drvdata()
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>
Diffstat (limited to 'drivers/tty/serial/mfd.c')
-rw-r--r--drivers/tty/serial/mfd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/mfd.c b/drivers/tty/serial/mfd.c
index a187cd4b1e53..503dcc77b2bd 100644
--- a/drivers/tty/serial/mfd.c
+++ b/drivers/tty/serial/mfd.c
@@ -1451,7 +1451,6 @@ static void serial_hsu_remove(struct pci_dev *pdev)
uart_remove_one_port(&serial_hsu_reg, &up->port);
}
- pci_set_drvdata(pdev, NULL);
free_irq(pdev->irq, priv);
pci_disable_device(pdev);
}