git: 39d8c3870752 - main - LinuxKPI: return value for linux_pci_probe()

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Fri, 18 Feb 2022 21:57:03 UTC
The branch main has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=39d8c3870752c597700c32c9dd57d421a1334611

commit 39d8c3870752c597700c32c9dd57d421a1334611
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-18 21:52:33 +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
    MFC after:      3 days
    Reviewed by:    hselasky
    Differential Revision: https://reviews.freebsd.org/D33913
---
 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 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