projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b990538
)
i7core_edac: Print an error message if pci register fails
author
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 3 Sep 2009 02:43:33 +0000
(23:43 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 10 May 2010 14:44:56 +0000
(11:44 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7core_edac.c
patch
|
blob
|
history
diff --git
a/drivers/edac/i7core_edac.c
b/drivers/edac/i7core_edac.c
index
86037a6
..
26205e2
100644
(file)
--- 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;
}
/*