mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141680
@ -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