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:
Nick Hibma 2000-07-18 20:16:16 +00:00
parent aa6dfd9d3d
commit 677cec5b04
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63458

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