summaryrefslogtreecommitdiffstats
path: root/drivers/tty/amiserial.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-08-22 04:08:04 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-28 01:24:33 +0200
commit1b2a405bbacc513627be875515bff4af5b498346 (patch)
treef5a03efe53cd47cfd7e17dff2492f62ade2b33f3 /drivers/tty/amiserial.c
parentserial: st-asc: remove unnecessary platform_set_drvdata() (diff)
downloadlinux-1b2a405bbacc513627be875515bff4af5b498346.tar.xz
linux-1b2a405bbacc513627be875515bff4af5b498346.zip
TTY: amiserial, 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/amiserial.c')
-rw-r--r--drivers/tty/amiserial.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c
index 083710e02367..2b86f8e0fb58 100644
--- a/drivers/tty/amiserial.c
+++ b/drivers/tty/amiserial.c
@@ -1785,8 +1785,6 @@ static int __exit amiga_serial_remove(struct platform_device *pdev)
free_irq(IRQ_AMIGA_TBE, state);
free_irq(IRQ_AMIGA_RBF, state);
- platform_set_drvdata(pdev, NULL);
-
return error;
}