]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit256dd96e310a1e33ac0e117f1fd390869c6e7260
treeb1fddc5a24a7556a3c957350eeb4ff46642c70a9
parentac5ebb7cabb2bf113162015c023718d52b0acacb
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