diff options
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_osm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c index d74b99dab7ec..e60f9338e44a 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c | |||
@@ -3605,9 +3605,8 @@ ahc_linux_init(void) | |||
3605 | ahc_linux_transport_template = spi_attach_transport(&ahc_linux_transport_functions); | 3605 | ahc_linux_transport_template = spi_attach_transport(&ahc_linux_transport_functions); |
3606 | if (!ahc_linux_transport_template) | 3606 | if (!ahc_linux_transport_template) |
3607 | return -ENODEV; | 3607 | return -ENODEV; |
3608 | int rc = ahc_linux_detect(&aic7xxx_driver_template); | 3608 | if (ahc_linux_detect(&aic7xxx_driver_template)) |
3609 | if (rc) | 3609 | return 0; |
3610 | return rc; | ||
3611 | spi_release_transport(ahc_linux_transport_template); | 3610 | spi_release_transport(ahc_linux_transport_template); |
3612 | ahc_linux_exit(); | 3611 | ahc_linux_exit(); |
3613 | return -ENODEV; | 3612 | return -ENODEV; |