]> err.no Git - linux-2.6/commit
cxgb3: Remove incorrect __devinit annotations
authorRoland Dreier <rdreier@cisco.com>
Tue, 29 Jan 2008 22:45:11 +0000 (14:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Feb 2008 12:28:35 +0000 (04:28 -0800)
commit7b9b09436b8720621e5594ce25fd25f34d5d42be
treedbcf98ca8f2485d20c50411a50c058f2df602e80
parentd96c75a3d170a7c9a1ef062cb6d7a65730a34f22
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 <rolandd@cisco.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb3/mc5.c
drivers/net/cxgb3/sge.c
drivers/net/cxgb3/t3_hw.c