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)
commitedb20c7aa5080f983af562d117c577975c9c392e
tree25d88f1089cbcfddd5ec04ef469d8ec592c1482c
parenta15ad34834b1b29459ae87b0f04489d0765259e8
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