i7core_edac: Introduce i7core_unregister_mci
authorHidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Fri, 20 Aug 2010 07:32:33 +0000 (04:32 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Oct 2010 13:20:40 +0000 (11:20 -0200)
commit1c6edbbe2529684859ff8e34a19e34fe9894a3b7
tree884b3751c2d5938ad7aad144440ec4f7a9c176e6
parent73589c80cd0dab94db50800c4834a8d8522cd54f
i7core_edac: Introduce i7core_unregister_mci

In i7core_probe, when setup of mci for 2nd or later socket failed,
we should cleanup prepared mci for 1st socket or so before "put" of
all devices.

So let have i7core_unregister_mci that can be shared between here
and i7core_remove.

While here fix a typo "hanler".

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