[PATCH] 2.4.7-pre8 scc.c vector latch region allocation

From: Rob Turk (r.turk@chello.nl)
Date: Fri Jul 20 2001 - 01:03:27 EST


> This patch fixes a failure in the scc.c driver to properly allocate the
I/O
> region for the interrupt vector latch, which is present on some ham radio
> SCC cards, such as the PA0HZP card.
>
> Rob Turk - PE1KOX
>

After receiving a few hints that uu-encoded messages are 'not done', here's
the same patch in text format. Sorry for any confusion.

Rob

--- linux.org/drivers/net/hamradio/scc.c Thu Jul 19 22:48:06 2001
+++ linux/drivers/net/hamradio/scc.c Thu Jul 19 20:55:58 2001
@@ -1775,8 +1775,8 @@
      Ivec[hwcfg.irq].used = 1;
    }

- if (hwcfg.vector_latch) {
- if (!request_region(Vector_Latch, 1, "scc vector latch"))
+ if (hwcfg.vector_latch && !Vector_Latch) {
+ if (!request_region(hwcfg.vector_latch, 1, "scc vector latch"))
      printk(KERN_WARNING "z8530drv: warning, cannot reserve vector latch
port 0x%lx\n, disabled.", hwcfg.vector_latch);
     else
      Vector_Latch = hwcfg.vector_latch;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 23 2001 - 21:00:13 EST