From: Haavard Skinnemoen Date: Fri, 8 Feb 2008 12:21:04 +0000 (-0800) Subject: atmel_serial: fix bugs in probe() error path and remove() X-Git-Tag: v2.6.25-rc1~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dfa7f343e526f3595d8f1d99807d141ae0c08601;p=pandora-kernel.git atmel_serial: fix bugs in probe() error path and remove() When an error happens in probe(), the clocks should be disabled, but only if the port isn't already used as a console. In remove(), the port struct shouldn't be freed because it's defined statically. 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