Commit fdf36d4e authored by Jeroen Vreeken's avatar Jeroen Vreeken Committed by Stephen Hemminger

[hamradio scc] fix probe function

fix for the probe function of the scc driver which now uses
an uninitialised scc struct for requesting an io region.
parent 06191dd6
...@@ -1762,7 +1762,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ...@@ -1762,7 +1762,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
#ifndef SCC_DONT_CHECK #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); disable_irq(hwcfg.irq);
Outb(hwcfg.ctrl_a, 0); Outb(hwcfg.ctrl_a, 0);
...@@ -1774,7 +1774,7 @@ static int scc_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd) ...@@ -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) if (InReg(hwcfg.ctrl_a,R13) != 0x55)
found = 0; found = 0;
enable_irq(hwcfg.irq); enable_irq(hwcfg.irq);
release_region(scc->ctrl, 1); release_region(hwcfg.ctrl_a, 1);
} }
else else
found = 0; found = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment