Skip PNP probes. If there are isapnp or pnpbios instances of this driver,
then we can support them later. This keeps the pbio probe from claiming lots of otherwise unused pnpbios devices on my laptop.
This commit is contained in:
parent
ff126c43cd
commit
8d50b6af00
@ -49,6 +49,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <dev/pbio/pbioio.h> /* pbio IOCTL definitions */
|
||||
#include <sys/uio.h>
|
||||
#include <sys/fcntl.h>
|
||||
#include <isa/isavar.h>
|
||||
|
||||
/* Function prototypes (these should all be static) */
|
||||
static d_open_t pbioopen;
|
||||
@ -168,6 +169,8 @@ pbioprobe(device_t dev)
|
||||
unsigned char val;
|
||||
#endif
|
||||
|
||||
if (isa_get_logicalid(dev)) /* skip PnP probes */
|
||||
return (ENXIO);
|
||||
rid = 0;
|
||||
scp->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||
0, ~0, IO_PBIOSIZE, RF_ACTIVE);
|
||||
|
Loading…
Reference in New Issue
Block a user