Felipe Balbi c990f35103 serial: omap: define and use to_uart_omap_port()
current code only works because struct uart_port
is the first member on the uart_omap_port structure.

If, for whatever reason, someone puts another
member as the first of the structure, that cast
won't work anymore. In order to be safe, let's use
a container_of() which, for now, gets optimized into
a cast anyway.

Tested-by: Shubhrajyoti D <shubhrajyoti@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-09-05 13:26:10 -07:00
..
2012-08-27 07:13:33 -07:00
2012-08-17 08:10:12 -07:00
2012-08-27 07:13:33 -07:00
2012-08-27 07:13:33 -07:00
2012-08-13 16:50:19 -07:00
2012-06-01 12:58:52 -04:00
2012-07-31 18:42:43 -07:00
2012-08-13 16:50:19 -07:00
2012-08-13 16:50:19 -07:00