git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
drivers
/
scsi
/
aic7xxx
/
aic7xxx_osm_pci.c
diff --git
a/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
b/drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
index
1b575ad
..
2a6fc40
100644
(file)
--- a/
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
+++ b/
drivers/scsi/aic7xxx/aic7xxx_osm_pci.c
@@
-198,7
+198,8
@@
int
ahc_linux_pci_init(void)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
ahc_linux_pci_init(void)
{
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)
- return (pci_module_init(&aic7xxx_pci_driver));
+ /* Translate error or zero return into zero or one */
+ return pci_module_init(&aic7xxx_pci_driver) ? 0 : 1;
#else
struct pci_dev *pdev;
u_int class;
#else
struct pci_dev *pdev;
u_int class;