Commit 19a8356e authored by Dave Jones's avatar Dave Jones Committed by Linus Torvalds

[PATCH] dltk driver check_region -> request_region

parent 271c62e5
......@@ -418,12 +418,11 @@ static int __init dtlk_dev_probe(void)
dtlk_portlist[i], (testval = inw_p(dtlk_portlist[i])));
#endif
if (check_region(dtlk_portlist[i], DTLK_IO_EXTENT))
if (!request_region(dtlk_portlist[i], DTLK_IO_EXTENT,
"dtlk"))
continue;
testval = inw_p(dtlk_portlist[i]);
if ((testval &= 0xfbff) == 0x107f) {
request_region(dtlk_portlist[i], DTLK_IO_EXTENT,
"dtlk");
dtlk_port_lpc = dtlk_portlist[i];
dtlk_port_tts = dtlk_port_lpc + 1;
......@@ -508,6 +507,7 @@ for (i = 0; i < 10; i++) \
return 0;
}
release_region(dtlk_portlist[i], DTLK_IO_EXTENT);
}
printk(KERN_INFO "\nDoubleTalk PC - not found\n");
......
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