summaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/st-asc.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-22 04:06:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-28 01:24:33 +0200
commit46ddeff30e59749aecff9b1357855f7d7bfe74b8 (patch)
treed8c692b5b8afa6e9c01290f0f63d430991a40b86 /drivers/tty/serial/st-asc.c
parentmsm_serial: Send more than 1 character on the console w/ UARTDM (diff)
downloadlinux-46ddeff30e59749aecff9b1357855f7d7bfe74b8.tar.xz
linux-46ddeff30e59749aecff9b1357855f7d7bfe74b8.zip
serial: st-asc: remove unnecessary platform_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/st-asc.c')
-rw-r--r--drivers/tty/serial/st-asc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/tty/serial/st-asc.c b/drivers/tty/serial/st-asc.c
index 4f5caa38e3dc..21e6e84c0df8 100644
--- a/drivers/tty/serial/st-asc.c
+++ b/drivers/tty/serial/st-asc.c
@@ -753,7 +753,6 @@ static int asc_serial_remove(struct platform_device *pdev)
{
struct uart_port *port = platform_get_drvdata(pdev);
- platform_set_drvdata(pdev, NULL);
return uart_remove_one_port(&asc_uart_driver, port);
}