aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-11-24 21:19:41 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-08 20:04:40 -0500
commit9cfb5e30951e484a403793d67d9ba0e2d4a188fd (patch)
treed4effb9324c6046ffa94a07af38feea1dd73883a
parent87a5a0371b7356c99f16363b80107602f110fcda (diff)
serial: pch_uart: 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/pch_uart.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/pch_uart.c b/drivers/tty/serial/pch_uart.c
index 0aa2b528ef3d..11c862c6bac8 100644
--- a/drivers/tty/serial/pch_uart.c
+++ b/drivers/tty/serial/pch_uart.c
@@ -1853,7 +1853,6 @@ static void pch_uart_exit_port(struct eg20t_port *priv)
1853 debugfs_remove(priv->debugfs); 1853 debugfs_remove(priv->debugfs);
1854#endif 1854#endif
1855 uart_remove_one_port(&pch_uart_driver, &priv->port); 1855 uart_remove_one_port(&pch_uart_driver, &priv->port);
1856 pci_set_drvdata(priv->pdev, NULL);
1857 free_page((unsigned long)priv->rxbuf.buf); 1856 free_page((unsigned long)priv->rxbuf.buf);
1858} 1857}
1859 1858