]> git.karo-electronics.de Git - karo-tx-linux.git/commit
serial: remove unnecessary platform_set_drvdata()
authorJingoo Han <jg1.han@samsung.com>
Tue, 25 Jun 2013 01:08:49 +0000 (10:08 +0900)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:03 +0000 (09:54 +0800)
commitde7a7a2dfd8e9c80163d7e8dcd6dc5538d9701d7
treeded944aceae356679f943c1de794deb03ec5152f
parentfbd003a12034fb102d7374e1d668a57484958921
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>
14 files changed:
drivers/tty/serial/ar933x_uart.c
drivers/tty/serial/atmel_serial.c
drivers/tty/serial/bcm63xx_uart.c
drivers/tty/serial/clps711x.c
drivers/tty/serial/efm32-uart.c
drivers/tty/serial/imx.c
drivers/tty/serial/netx-serial.c
drivers/tty/serial/pmac_zilog.c
drivers/tty/serial/pnx8xxx_uart.c
drivers/tty/serial/pxa.c
drivers/tty/serial/sa1100.c
drivers/tty/serial/sccnxp.c
drivers/tty/serial/sirfsoc_uart.c
drivers/tty/serial/vt8500_serial.c