]> git.baikalelectronics.ru Git - kernel.git/commit
sb_edac: Claim a different PCI device
authorAndy Lutomirski <luto@amacapital.net>
Thu, 14 Aug 2014 21:45:41 +0000 (14:45 -0700)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 8 Oct 2014 20:04:16 +0000 (17:04 -0300)
commit95950504ac9641e8ab186de8077caa7b65ec184f
tree27770ce31c8f2efa9fb996268191f7045c837f0d
parentbaff4187f5896f669f273656faf02b147d296343
sb_edac: Claim a different PCI device

sb_edac controls a large number of different PCI functions.  Rather
than registering as a normal PCI driver for all of them, it
registers for just one so that it gets probed and, at probe time, it
looks for all the others.

Coincidentally, the device it registers for also contains the SMBUS
registers, so the PCI core will refuse to probe both sb_edac and a
future iMC SMBUS driver.  The drivers don't actually conflict, so
just change sb_edac's device table to probe a different device.

An alternative fix would be to merge the two drivers, but sb_edac
will also refuse to load on non-ECC systems, whereas i2c_imc would
still be useful without ECC.

The only user-visible change should be that sb_edac appears to bind
a different device.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Cc: Rui Wang <ruiv.wang@gmail.com>
Acked-by: Aristeu Rozanski <aris@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/edac/sb_edac.c