projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0a727de
)
[PATCH] atyfb: Honor the return value of pci_register_driver
author
Antonino A. Daplas
<
[email protected]
>
Tue, 3 Oct 2006 08:14:51 +0000
(
01:14
-0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 3 Oct 2006 15:04:10 +0000
(08:04 -0700)
Check return value of pci_register_driver().
Signed-off-by: Antonino Daplas <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/video/aty/atyfb_base.c
patch
|
blob
|
history
diff --git
a/drivers/video/aty/atyfb_base.c
b/drivers/video/aty/atyfb_base.c
index 19a71f045784008c3a278be54f1f42f19cfda6c9..1e8e9ade9396086e2a829811841a5c304ae50fc0 100644
(file)
--- a/
drivers/video/aty/atyfb_base.c
+++ b/
drivers/video/aty/atyfb_base.c
@@
-3863,6
+3863,7
@@
static int __devinit atyfb_setup(char *options)
static int __devinit atyfb_init(void)
{
+ int err1 = 1, err2 = 1;
#ifndef MODULE
char *option = NULL;
@@
-3872,12
+3873,13
@@
static int __devinit atyfb_init(void)
#endif
#ifdef CONFIG_PCI
- pci_register_driver(&atyfb_driver);
+
err1 =
pci_register_driver(&atyfb_driver);
#endif
#ifdef CONFIG_ATARI
- atyfb_atari_probe();
+
err2 =
atyfb_atari_probe();
#endif
- return 0;
+
+ return (err1 && err2) ? -ENODEV : 0;
}
static void __exit atyfb_exit(void)