From: David S. Miller Date: Sat, 29 Dec 2007 09:19:49 +0000 (-0800) Subject: [SERIAL]: Fix section mismatches in Sun serial console drivers. X-Git-Tag: v2.6.24-rc7~25^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb445ee5f9bfc7cbef9e397556170c608dc02955;p=pandora-kernel.git [SERIAL]: Fix section mismatches in Sun serial console drivers. We're exporting an __init function, oops :-) The core issue here is that add_preferred_console() is marked as __init, this makes it impossible to invoke this thing from a driver probe routine which is what the Sparc serial drivers need to do. There is no harm in dropping the __init marker. This code will actually work properly when invoked from a modular driver, except that init will probably not pick up the console change without some other support code. Then we can drop the __init from sunserial_console_match() and we're no longer exporting an __init function to modules. Signed-off-by: David S. Miller --- Reading git-diff-tree failed