public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* compile warning fix for advansys (trivial)
@ 2003-12-21 21:40 Guennadi Liakhovetski
  2003-12-28 20:05 ` Christoph Hellwig
  0 siblings, 1 reply; 6+ messages in thread
From: Guennadi Liakhovetski @ 2003-12-21 21:40 UTC (permalink / raw)
  To: linux-scsi

Hi

This was earlier sent with a pretty masking subject to LKML, so, in case,
it wasn't noticed by those, who collect stuff for 2.6.1+, here it is
again.

On Fri, 19 Dec 2003, Gene Heskett wrote:

> Hey, how about us advansis users?  There is at least one, me...  And
> thats the only driver in the whole compile that spits out visible
> warnings about check_region() being deprecated.  But its still
> working, so far.  I presume it will until such time as check_region()
> is actually removed from wherever it lives.

Well, wouldn't it suffice just to remove the deprecated checks? The only
(for recent kernels) request_region() does check the return code. So, this
should do:

--- drivers/scsi/advansys.c~	Mon Nov 24 20:43:42 2003
+++ drivers/scsi/advansys.c	Sat Dec 20 15:34:00 2003
@@ -4619,13 +4619,7 @@
                         ASC_DBG1(1,
                                 "advansys_detect: probing I/O port 0x%x...\n",
                             iop);
-                        if (check_region(iop, ASC_IOADR_GAP) != 0) {
-                            printk(
-"AdvanSys SCSI: specified I/O Port 0x%X is busy\n", iop);
-                            /* Don't try this I/O port twice. */
-                            asc_ioport[ioport] = 0;
-                            goto ioport_try_again;
-                        } else if (AscFindSignature(iop) == ASC_FALSE) {
+			if (AscFindSignature(iop) == ASC_FALSE) {
                             printk(
 "AdvanSys SCSI: specified I/O Port 0x%X has no adapter\n", iop);
                             /* Don't try this I/O port twice. */
@@ -10003,12 +9997,6 @@
     }
     for (; i < ASC_IOADR_TABLE_MAX_IX; i++) {
         iop_base = _asc_def_iop_base[i];
-        if (check_region(iop_base, ASC_IOADR_GAP) != 0) {
-            ASC_DBG1(1,
-               "AscSearchIOPortAddr11: check_region() failed I/O port 0x%x\n",
-                     iop_base);
-            continue;
-        }
         ASC_DBG1(1, "AscSearchIOPortAddr11: probing I/O port 0x%x\n", iop_base);
         if (AscFindSignature(iop_base)) {
             return (iop_base);

Regards
Guennadi
---
Guennadi Liakhovetski


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-12-31 19:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-21 21:40 compile warning fix for advansys (trivial) Guennadi Liakhovetski
2003-12-28 20:05 ` Christoph Hellwig
2003-12-28 23:26   ` Guennadi Liakhovetski
2003-12-28 23:28     ` Christoph Hellwig
2003-12-30 22:32       ` Guennadi Liakhovetski
2003-12-31 18:17       ` Guennadi Liakhovetski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox