From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] m68k link error and NCR5380_exit() Date: Mon, 7 Mar 2005 06:37:19 +0000 Message-ID: <20050307063719.GA12478@infradead.org> References: <20050212075645.GA30669@pants.nu> <20050213040948.GA10198@orchestra.cs.caltech.edu> <20050213063225.GA17415@orchestra.cs.caltech.edu> <20050213075506.GA18622@orchestra.cs.caltech.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Received: from pentafluge.infradead.org ([213.146.154.40]:4012 "EHLO pentafluge.infradead.org") by vger.kernel.org with ESMTP id S261653AbVCGGh3 (ORCPT ); Mon, 7 Mar 2005 01:37:29 -0500 Content-Disposition: inline In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Finn Thain Cc: James.Bottomley@SteelEye.com, linux scsi , Geert Uytterhoeven , Noah Misch , linux m68k > .detect = macscsi_detect, > - .release = macscsi_release, > + .release = __exit_p(macscsi_release), Please get rid of your ->detect/->release useage instead. Allocate the host struct directly with scsi_host_alloc and add it when setup using scsi_add_host/scsi_scan_host in your init routine and call scsi_remove_host/ scsi_host_put in the module exit routine. see qla1280.c for an example that does this for the 2.6 case and to ease your porting also has the 2.4 code ifdefed so you have the direct comparism.