]> git.hungrycats.org Git - linux/commitdiff
[hamradio scc] fix probe function
authorJeroen Vreeken <pe1rxq@amsat.org>
Tue, 14 Oct 2003 10:05:14 +0000 (06:05 -0400)
committerStephen Hemminger <shemminger@osdl.org>
Tue, 14 Oct 2003 10:05:14 +0000 (06:05 -0400)
fix for the probe function of the scc driver which now uses
an uninitialised scc struct for requesting an io region.

drivers/net/hamradio/scc.c

index cee45d0cebbfe290624c80f417ab6e79c79392bd..0eec5d3e8d8bc0005cdba28d8e5f6d4fcb7b7c09 100644 (file)
@@ -1762,7 +1762,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
 
 #ifndef SCC_DONT_CHECK
 
-                       if(request_region(scc->ctrl, 1, "scc-probe"))
+                       if(request_region(hwcfg.ctrl_a, 1, "scc-probe"))
                        {
                                disable_irq(hwcfg.irq);
                                Outb(hwcfg.ctrl_a, 0);
@@ -1774,7 +1774,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                                if (InReg(hwcfg.ctrl_a,R13) != 0x55)
                                        found = 0;
                                enable_irq(hwcfg.irq);
-                               release_region(scc->ctrl, 1);
+                               release_region(hwcfg.ctrl_a, 1);
                        }
                        else
                                found = 0;