aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-09-09 01:11:17 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 17:29:59 -0400
commit4190390ad282e5f69bdb02af094c09787f34ca38 (patch)
tree4c41ca2a34239b916dcc116f875456d80252b5be /drivers/tty
parentd4aab2064adbd0660ab9cbfc3e93eae8216b41aa (diff)
serial: mpc512x: Remove casting the return value which is a void pointer
Casting the return value which is a void pointer is redundant. The conversion from void pointer to any other pointer type is guaranteed by the C programming language. Signed-off-by: Jingoo Han <jg1.han@samsung.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/mpc52xx_uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/mpc52xx_uart.c b/drivers/tty/serial/mpc52xx_uart.c
index 5be1df39f9f5..e05a3b1a87c7 100644
--- a/drivers/tty/serial/mpc52xx_uart.c
+++ b/drivers/tty/serial/mpc52xx_uart.c
@@ -1766,7 +1766,7 @@ mpc52xx_uart_of_remove(struct platform_device *op)
1766static int 1766static int
1767mpc52xx_uart_of_suspend(struct platform_device *op, pm_message_t state) 1767mpc52xx_uart_of_suspend(struct platform_device *op, pm_message_t state)
1768{ 1768{
1769 struct uart_port *port = (struct uart_port *) platform_get_drvdata(op); 1769 struct uart_port *port = platform_get_drvdata(op);
1770 1770
1771 if (port) 1771 if (port)
1772 uart_suspend_port(&mpc52xx_uart_driver, port); 1772 uart_suspend_port(&mpc52xx_uart_driver, port);
@@ -1777,7 +1777,7 @@ mpc52xx_uart_of_suspend(struct platform_device *op, pm_message_t state)
1777static int 1777static int
1778mpc52xx_uart_of_resume(struct platform_device *op) 1778mpc52xx_uart_of_resume(struct platform_device *op)
1779{ 1779{
1780 struct uart_port *port = (struct uart_port *) platform_get_drvdata(op); 1780 struct uart_port *port = platform_get_drvdata(op);
1781 1781
1782 if (port) 1782 if (port)
1783 uart_resume_port(&mpc52xx_uart_driver, port); 1783 uart_resume_port(&mpc52xx_uart_driver, port);