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:
n_hibma 2000-07-18 20:16:16 +00:00
parent d059922524
commit 3e59dde562

View File

@ -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);
}