Commit d1a2fd6a authored by William Stinson's avatar William Stinson Committed by David S. Miller

[SPARC-BPP]: remove check_region

parent de027d3f
...@@ -886,7 +886,7 @@ static void probeLptPort(unsigned idx) ...@@ -886,7 +886,7 @@ static void probeLptPort(unsigned idx)
instances[idx].run_flag = 0; instances[idx].run_flag = 0;
init_timer(&instances[idx].timer_list); init_timer(&instances[idx].timer_list);
instances[idx].timer_list.function = bpp_wake_up; instances[idx].timer_list.function = bpp_wake_up;
if (check_region(lpAddr,3)) return; if (!request_region(lpAddr,3, dev_name)) return;
/* /*
* First, make sure the instance exists. Do this by writing to * First, make sure the instance exists. Do this by writing to
...@@ -904,7 +904,6 @@ static void probeLptPort(unsigned idx) ...@@ -904,7 +904,6 @@ static void probeLptPort(unsigned idx)
unsigned save; unsigned save;
instances[idx].present = 1; instances[idx].present = 1;
request_region(lpAddr,3, dev_name);
save = inb_p(lpAddr+2); save = inb_p(lpAddr+2);
for (testvalue=0; testvalue<BPP_DELAY; testvalue++) for (testvalue=0; testvalue<BPP_DELAY; testvalue++)
; ;
...@@ -921,7 +920,9 @@ static void probeLptPort(unsigned idx) ...@@ -921,7 +920,9 @@ static void probeLptPort(unsigned idx)
instances[idx].enhanced = 1; instances[idx].enhanced = 1;
outb_p(save, lpAddr+2); outb_p(save, lpAddr+2);
} }
else {
release_region(lpAddr,3);
}
/* /*
* Leave the port in compat idle mode. * Leave the port in compat idle mode.
*/ */
......
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