git: 4b26b63371e7 - stable/13 - LinuxKPI: return value for linux_pci_probe()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 27 Feb 2022 23:43:29 UTC
The branch stable/13 has been updated by bz: URL: https://cgit.FreeBSD.org/src/commit/?id=4b26b63371e767d9c39e139a4df434e18986290e commit 4b26b63371e767d9c39e139a4df434e18986290e Author: Bjoern A. Zeeb <bz@FreeBSD.org> AuthorDate: 2022-01-17 00:47:13 +0000 Commit: Bjoern A. Zeeb <bz@FreeBSD.org> CommitDate: 2022-02-27 23:41:54 +0000 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 Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D33913 (cherry picked from commit 39d8c3870752c597700c32c9dd57d421a1334611) --- sys/compat/linuxkpi/common/src/linux_pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/compat/linuxkpi/common/src/linux_pci.c b/sys/compat/linuxkpi/common/src/linux_pci.c index af79ef1d8654..06feb5107ea5 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