Commit 518554b6 authored by Justin T. Gibbs's avatar Justin T. Gibbs

Fix Aic7xxx and Aic79xx Driver builds for 2.4.X.

parent 0bab3fa4
/* /*
* Adaptec AIC79xx device driver for Linux. * Adaptec AIC79xx device driver for Linux.
* *
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#130 $ * $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic79xx_osm.c#131 $
* *
* -------------------------------------------------------------------------- * --------------------------------------------------------------------------
* Copyright (c) 1994-2000 Justin T. Gibbs. * Copyright (c) 1994-2000 Justin T. Gibbs.
...@@ -5357,7 +5357,7 @@ ahd_linux_init(void) ...@@ -5357,7 +5357,7 @@ ahd_linux_init(void)
return (ahd_linux_detect(&aic79xx_driver_template) ? 0 : -ENODEV); return (ahd_linux_detect(&aic79xx_driver_template) ? 0 : -ENODEV);
#else #else
scsi_register_module(MODULE_SCSI_HA, &aic79xx_driver_template); scsi_register_module(MODULE_SCSI_HA, &aic79xx_driver_template);
if (!driver_template.present) { if (aic79xx_driver_template.present == 0) {
scsi_unregister_module(MODULE_SCSI_HA, scsi_unregister_module(MODULE_SCSI_HA,
&aic79xx_driver_template); &aic79xx_driver_template);
return (-ENODEV); return (-ENODEV);
......
/* /*
* Adaptec AIC7xxx device driver for Linux. * Adaptec AIC7xxx device driver for Linux.
* *
* $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#194 $ * $Id: //depot/aic7xxx/linux/drivers/scsi/aic7xxx/aic7xxx_osm.c#195 $
* *
* Copyright (c) 1994 John Aycock * Copyright (c) 1994 John Aycock
* The University of Calgary Department of Computer Science. * The University of Calgary Department of Computer Science.
...@@ -5228,7 +5228,7 @@ ahc_linux_init(void) ...@@ -5228,7 +5228,7 @@ ahc_linux_init(void)
return (ahc_linux_detect(&aic7xxx_driver_template) ? 0 : -ENODEV); return (ahc_linux_detect(&aic7xxx_driver_template) ? 0 : -ENODEV);
#else #else
scsi_register_module(MODULE_SCSI_HA, &aic7xxx_driver_template); scsi_register_module(MODULE_SCSI_HA, &aic7xxx_driver_template);
if (!driver_template.present) { if (aic7xxx_driver_template.present == 0) {
scsi_unregister_module(MODULE_SCSI_HA, scsi_unregister_module(MODULE_SCSI_HA,
&aic7xxx_driver_template); &aic7xxx_driver_template);
return (-ENODEV); return (-ENODEV);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment