summaryrefslogtreecommitdiffstats
path: root/drivers/edac/edac_mc_sysfs.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2010-10-24 11:36:19 -0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-10-24 11:36:19 -0200
commit76a7bd81130646459dfded1845e0d511488a6afa (patch)
tree1b3f4aa48253aaadd4adc72a0888beee8ee58e6b /drivers/edac/edac_mc_sysfs.c
parent3c52cc57ccd5c99441368d5e66be36681ce90e72 (diff)
downloadblackbird-op-linux-76a7bd81130646459dfded1845e0d511488a6afa.tar.gz
blackbird-op-linux-76a7bd81130646459dfded1845e0d511488a6afa.zip
i7core_edac: return -ENODEV when devices were already probed
Due to the nature of i7core, we need to probe and attach all PCI devices used by this driver during the first time probe is called. However, PCI core will call the probe routine one time for each CPU socket. If we return -EINVAL to those calls, it would seem that the driver fails, when, in fact, there's no more devices left to initialize. Changing the return code to -ENODEV solves this issue. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac/edac_mc_sysfs.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud