diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-08-22 02:08:04 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-27 23:24:33 (GMT) |
commit | 1b2a405bbacc513627be875515bff4af5b498346 (patch) | |
tree | f5a03efe53cd47cfd7e17dff2492f62ade2b33f3 /drivers/tty | |
parent | 46ddeff30e59749aecff9b1357855f7d7bfe74b8 (diff) | |
download | linux-1b2a405bbacc513627be875515bff4af5b498346.tar.xz |
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')
-rw-r--r-- | drivers/tty/amiserial.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index 083710e..2b86f8e 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; } |