From: Haavard Skinnemoen Date: Fri, 8 Feb 2008 12:21:08 +0000 (-0800) Subject: atmel_serial: use container_of instead of direct cast X-Git-Tag: v2.6.25-rc1~111 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c811ab8c2daf6bc2b5761937929a62fa84b18b32;p=pandora-kernel.git atmel_serial: use container_of instead of direct cast As pointed out by David Brownell, we really ought to be using container_of when converting from "struct uart_port *" to "struct atmel_uart_port *". Signed-off-by: Haavard Skinnemoen Cc: Andrew Victor Tested-by: Marc Pignat Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed