]> git.baikalelectronics.ru Git - kernel.git/commit
tty: use container_of to resolve uart_pmac_port from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:01:08 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:52 +0000 (19:20 -0800)
commit532797df43cb446580dd13141b27458561f20acd
tree25d88f1089cbcfddd5ec04ef469d8ec592c1482c
parentd3c2ede16f3a02d0fe6fe1705ba7e8723389336f
tty: use container_of to resolve uart_pmac_port from uart_port

Use container_of instead of casting first structure member.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pmac_zilog.c