i7core_edac: change remove module strategy
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 6 Sep 2009 02:06:50 +0000 (23:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 10 May 2010 14:45:00 +0000 (11:45 -0300)
commit22e6bcbdcf9279321dbe646c5a234b816db12881
tree1488af672bbf9b4ffd5afd35c450c95b4fd8a32b
parent0f062792b48dc8389fb18cbfb9318625886644c7
i7core_edac: change remove module strategy

The old remove module stragegy didn't work on devices with multiple
cores, since only one PCI device is used to open all mc's, due to
Nehalem nature.

Also, it were based at pdev value. However, this doesn't point to the
pci device used at mci->dev.

So, instead, it unregisters all devices at once, deleting them from the
device list.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c