scsi: aha1740: stop using scsi_unregister
authorChristoph Hellwig <hch@lst.de>
Wed, 14 Mar 2018 11:48:25 +0000 (12:48 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 15 Mar 2018 04:26:54 +0000 (00:26 -0400)
aha1740 doesn't use scsi_register, so it should not use scsi_unregister
either.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aha1740.c

index bad35ffc015d0e0d1364eb4a72e7eb5ccf284b8d..b48d5436f094f883a92e8acb9dcc66e6c0c5f540 100644 (file)
@@ -592,7 +592,7 @@ static int aha1740_probe (struct device *dev)
                                             DMA_BIDIRECTIONAL);
        if (!host->ecb_dma_addr) {
                printk (KERN_ERR "aha1740_probe: Couldn't map ECB, giving up\n");
-               scsi_unregister (shpnt);
+               scsi_host_put (shpnt);
                goto err_host_put;
        }