From: Christoph Hellwig Date: Wed, 14 Mar 2018 11:48:25 +0000 (+0100) Subject: scsi: aha1740: stop using scsi_unregister X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1dc09e120c83143bdccf2e445f604666e7eebc11;p=openwrt%2Fstaging%2Fblogic.git scsi: aha1740: stop using scsi_unregister aha1740 doesn't use scsi_register, so it should not use scsi_unregister either. Signed-off-by: Christoph Hellwig Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/aha1740.c b/drivers/scsi/aha1740.c index bad35ffc015d..b48d5436f094 100644 --- a/drivers/scsi/aha1740.c +++ b/drivers/scsi/aha1740.c @@ -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; }