aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/pnx8xxx_uart.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-06-24 21:08:49 -0400
committerNitin Garg <nitin.garg@freescale.com>2014-04-16 09:00:50 -0400
commitb0262f5a6904b76471faf5c20cfba093b3d0e713 (patch)
tree8e455d2059b32a7b13c1e379bb73e276aa1c613c /drivers/tty/serial/pnx8xxx_uart.c
parent28a0026ca3bdcebec54b550581016d906e5fa2db (diff)
serial: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Barry Song <baohua.song@csr.com> Acked-by: Tony Prisk <linux@prisktech.co.nz> Acked-by: Shawn Guo <shawn.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Huang Shijie <b32955@freescale.com>
Diffstat (limited to 'drivers/tty/serial/pnx8xxx_uart.c')
-rw-r--r--drivers/tty/serial/pnx8xxx_uart.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/serial/pnx8xxx_uart.c b/drivers/tty/serial/pnx8xxx_uart.c
index 7e277a5384a7..b6b7aca5707a 100644
--- a/drivers/tty/serial/pnx8xxx_uart.c
+++ b/drivers/tty/serial/pnx8xxx_uart.c
@@ -801,8 +801,6 @@ static int pnx8xxx_serial_remove(struct platform_device *pdev)
801{ 801{
802 struct pnx8xxx_port *sport = platform_get_drvdata(pdev); 802 struct pnx8xxx_port *sport = platform_get_drvdata(pdev);
803 803
804 platform_set_drvdata(pdev, NULL);
805
806 if (sport) 804 if (sport)
807 uart_remove_one_port(&pnx8xxx_reg, &sport->port); 805 uart_remove_one_port(&pnx8xxx_reg, &sport->port);
808 806