From patchwork Wed Mar 14 11:48:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Hellwig X-Patchwork-Id: 10281925 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9A12F601E9 for ; Wed, 14 Mar 2018 11:48:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8C008286AA for ; Wed, 14 Mar 2018 11:48:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 80D0D28856; Wed, 14 Mar 2018 11:48:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 352CC286AA for ; Wed, 14 Mar 2018 11:48:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751474AbeCNLsz (ORCPT ); Wed, 14 Mar 2018 07:48:55 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:44320 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750751AbeCNLsy (ORCPT ); Wed, 14 Mar 2018 07:48:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=EgNufmD2xmEXhTqPxPcl92M00JvQflVenScfGPuCkxA=; b=JmGykoXKqdqrcm8DHOtMB3dgK z3sCND2B54PNxqjRJslOQxmchzRWDXrHF1AOmJtJ1C3J5ET6ppOBS4h0HyK/QUUzMm/S5F6hY/qIr PixN6xRjZwK6leO1F6mtA8nw0KqstTBbYGWQboPgfFpwo0pf3alDlt+rZN3/mWT0ikjApSTuATKYJ ja1lrHcVLaQKiZb0rHprpSCzDhtW+vblv9ftWEGPybjXzO2rg+nUt9RnEI9A+b3LSLudAzuq6TV31 G6pMUqROLU3cnW7ihRhBoHwzCAJF5951WIcWN64zXKQFTWbtAKYH62ASvFpoE30gQJO2F0dsj9x3w uZgVKAQZg==; Received: from 77.117.139.172.wireless.dyn.drei.com ([77.117.139.172] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1ew4tk-00079m-3s; Wed, 14 Mar 2018 11:48:48 +0000 From: Christoph Hellwig To: "Martin K. Petersen" Cc: aacraid@adaptec.com, linuxdrivers@attotech.com, linux-m68k@lists.linux-m68k.org, linux-scsi@vger.kernel.org Subject: [PATCH 02/12] ips: don't set .detect and .release in the host template Date: Wed, 14 Mar 2018 12:48:24 +0100 Message-Id: <20180314114834.17380-3-hch@lst.de> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180314114834.17380-1-hch@lst.de> References: <20180314114834.17380-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since moving away from using scsi_module.c these were never called. The implementations are called directly, though so they remain. Signed-off-by: Christoph Hellwig --- drivers/scsi/ips.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/scsi/ips.c b/drivers/scsi/ips.c index 67621308eb9c..e3c8857741a1 100644 --- a/drivers/scsi/ips.c +++ b/drivers/scsi/ips.c @@ -224,8 +224,6 @@ module_param(ips, charp, 0); /* * Function prototypes */ -static int ips_detect(struct scsi_host_template *); -static int ips_release(struct Scsi_Host *); static int ips_eh_abort(struct scsi_cmnd *); static int ips_eh_reset(struct scsi_cmnd *); static int ips_queue(struct Scsi_Host *, struct scsi_cmnd *); @@ -355,8 +353,6 @@ static dma_addr_t ips_flashbusaddr; static long ips_FlashDataInUse; /* CD Boot - Flash Data In Use Flag */ static uint32_t MaxLiteCmds = 32; /* Max Active Cmds for a Lite Adapter */ static struct scsi_host_template ips_driver_template = { - .detect = ips_detect, - .release = ips_release, .info = ips_info, .queuecommand = ips_queue, .eh_abort_handler = ips_eh_abort,