summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-12 15:31:06 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 15:41:38 -0700
commitf8bf876209a9828a456a9ac09ef6369a007dda2d (patch)
tree2868a20790e6d07d87b2b9a26ffcbde710d5b285
parenta50c44ce2463c427552bd0dab635d4980ed84131 (diff)
downloadop-kernel-dev-f8bf876209a9828a456a9ac09ef6369a007dda2d.zip
op-kernel-dev-f8bf876209a9828a456a9ac09ef6369a007dda2d.tar.gz
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>
-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 a187cd4b..503dcc7 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);
}
OpenPOWER on IntegriCloud