Make all drivers using parallel port fail if they cannot get IO permission.

This commit is contained in:
mmdolze
2009-09-14 19:08:22 +00:00
parent 6e781ed0a0
commit 55a9795c8a
7 changed files with 34 additions and 12 deletions
+2 -2
View File
@@ -119,13 +119,13 @@ t6963_init (Driver *drvthis)
/* -- Get permission to parallel port --------------------------------------------*/
debug(RPT_DEBUG, "T6963: Getting permission to parallel port %d...", p->port);
if (port_access_multiple(p->port, 3)) { //ioperm(p->port, 3, 1)) {
if (port_access_multiple(p->port, 3)) {
report(RPT_ERR, "%s: no permission to port 0x%03X: (%s)",
drvthis->name, p->port, strerror(errno));
return -1;
}
if (port_access(0x80)) { //ioperm(0x80, 1, 1)) {
if (port_access(0x80)) {
report(RPT_ERR, "%s: no permission to port 0x80: (%s)",
drvthis->name, strerror(errno));
return -1;