summaryrefslogtreecommitdiffstats
path: root/drivers/edac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-09-02 23:43:33 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-10 11:44:56 -0300
commit3ef288a98307adc9d3f83321b26281567f348ec6 (patch)
treebc147015ca04a6129dc726e3865315db15f7a2b5 /drivers/edac
parentb990538a78ea84e89551ccaddf182beb5e16e6d2 (diff)
downloadblackbird-op-linux-3ef288a98307adc9d3f83321b26281567f348ec6.tar.gz
blackbird-op-linux-3ef288a98307adc9d3f83321b26281567f348ec6.zip
i7core_edac: Print an error message if pci register fails
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/i7core_edac.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 86037a601b54..26205e2efecf 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -1743,7 +1743,13 @@ static int __init i7core_init(void)
pci_rc = pci_register_driver(&i7core_driver);
- return (pci_rc < 0) ? pci_rc : 0;
+ if (pci_rc >= 0)
+ return 0;
+
+ i7core_printk(KERN_ERR, "Failed to register device with error %d.\n",
+ pci_rc);
+
+ return pci_rc;
}
/*
OpenPOWER on IntegriCloud