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

This commit is contained in:
mmdolze committed 2009-09-14 19:08:22 +00:00
1 parent 6e781ed0a0
commit 55a9795c8a
7 files changed
+34 -12

No files matched your search

+5 -1
View File
@@ -125,7 +125,11 @@ hd_init_winamp(Driver *drvthis)
}
// Reserve the port registers
port_access_multiple(p->port,3);
if (port_access_multiple(p->port,3)) {
report(RPT_ERR, "%s: cannot get IO-permission for 0x%03X: %s",
drvthis->name, p->port, strerror(errno));
return -1;
}
hd44780_functions->senddata = lcdwinamp_HD44780_senddata;
hd44780_functions->backlight = lcdwinamp_HD44780_backlight;