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
d059922524
commit
3e59dde562
@ -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 New Issue
Block a user