mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Fix the detection of parallel port Zip drives.
Submitted by: j mckitrick <jcm@freebsd-uk.eu.org> Reviewed by: nsouchu
This commit is contained in:
parent
aa6dfd9d3d
commit
677cec5b04
1 changed files with 5 additions and 4 deletions
|
|
@ -131,10 +131,11 @@ ppb_set_mode(device_t bus, int mode)
|
|||
struct ppb_data *ppb = DEVTOSOFTC(bus);
|
||||
int old_mode = ppb_get_mode(bus);
|
||||
|
||||
if (!PPBUS_SETMODE(device_get_parent(bus), mode)) {
|
||||
/* XXX yet device mode = ppbus mode = chipset mode */
|
||||
ppb->mode = (mode & PPB_MASK);
|
||||
}
|
||||
if (PPBUS_SETMODE(device_get_parent(bus), mode))
|
||||
return -1;
|
||||
|
||||
/* XXX yet device mode = ppbus mode = chipset mode */
|
||||
ppb->mode = (mode & PPB_MASK);
|
||||
|
||||
return (old_mode);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue