i7core_edac: Fix order of lines in i7core_register_mci
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Fri, 20 Aug 2010 07:28:25 +0000 (04:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Oct 2010 13:20:39 +0000 (11:20 -0200)
commit5939813b9c4270d0f46375c3cad64226bb1fcd62
tree957f303c358b207d4e6d6780ff4b26b95e5c92e5
parent64c10f6e0e6b4473b97c29c574e9517f93bedaec
i7core_edac: Fix order of lines in i7core_register_mci

The flag is_registered is not initialized until mci_bind_devs()
is called.  Refer it properly.

The mci->dev and mci->edac_check is required in edac_mc_add_mc(),
so prepare them just before the call.

Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c