aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2022-01-17 00:47:13 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2022-02-18 21:52:33 +0000
commit39d8c3870752c597700c32c9dd57d421a1334611 (patch)
tree431494140ec27b06ee7a6112d8bb5e99ad6326bd
parente9e7bc8250548fc6f91e2b3b9c30a865c5edfb60 (diff)
downloadsrc-39d8c3870752c597700c32c9dd57d421a1334611.tar.gz
src-39d8c3870752c597700c32c9dd57d421a1334611.zip
LinuxKPI: return value for linux_pci_probe()
In linux_pci_probe() return BUS_PROBE_DEFAULT rather than 0 (which actually is BUS_PROBE_SPECIFIC and means 'Only this driver can use this device'). Sponsored by: The FreeBSD Foundation MFC after: 3 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33913
-rw-r--r--sys/compat/linuxkpi/common/src/linux_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c
index 7ee5e2b2e06a..0f8e7cc82631 100644
--- a/sys/compat/linuxkpi/common/src/linux_pci.c
+++ b/sys/compat/linuxkpi/common/src/linux_pci.c
@@ -361,7 +361,7 @@ linux_pci_probe(device_t dev)
if (device_get_driver(dev) != &pdrv->bsddriver)
return (ENXIO);
device_set_desc(dev, pdrv->name);
- return (0);
+ return (BUS_PROBE_DEFAULT);
}
static int