netconsole: switch init_netconsole() to late_initcall
authorLin Ming <ming.m.lin@intel.com>
Tue, 20 Sep 2011 19:45:07 +0000 (15:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Sep 2011 19:45:07 +0000 (15:45 -0400)
commit97c7de055713afddf4218f19c896b5185555da15
treeb1fddc5a24a7556a3c957350eeb4ff46642c70a9
parent710778ff878a06654175863db133293007d45aee
netconsole: switch init_netconsole() to late_initcall

Commit 88491d8(drivers/net: Kconfig & Makefile cleanup) causes a
regression that netconsole does not work if netconsole and network
device driver are build into kernel, because netconsole is linked
before network device driver.

Andrew Morton suggested to fix this with initcall ordering.
Fixes it by switching init_netconsole() to late_initcall.

Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netconsole.c