From: Roland Dreier Date: Tue, 29 Jan 2008 22:45:11 +0000 (-0800) Subject: cxgb3: Remove incorrect __devinit annotations X-Git-Tag: v2.6.25-rc1~1065^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b9b09436b8720621e5594ce25fd25f34d5d42be;p=pandora-kernel.git cxgb3: Remove incorrect __devinit annotations When PCI error recovery was added to cxgb3, a function t3_io_slot_reset() was added. This function can call back into t3_prep_adapter() at any time, so t3_prep_adapter() can no longer be marked __devinit. This patch removes the __devinit annotation from t3_prep_adapter() and all the functions that it calls, which fixes WARNING: drivers/net/cxgb3/built-in.o(.text+0x2427): Section mismatch in reference from the function t3_io_slot_reset() to the function .devinit.text:t3_prep_adapter() Signed-off-by: Roland Dreier Signed-off-by: Jeff Garzik Signed-off-by: David S. Miller --- Reading git-diff-tree failed