diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-09-12 15:31:06 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-09-26 15:41:38 -0700 |
commit | f8bf876209a9828a456a9ac09ef6369a007dda2d (patch) | |
tree | 2868a20790e6d07d87b2b9a26ffcbde710d5b285 /drivers/tty/serial | |
parent | a50c44ce2463c427552bd0dab635d4980ed84131 (diff) |
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')
-rw-r--r-- | drivers/tty/serial/mfd.c | 1 |
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); } |