]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[linux] Remove unused can_probe field from driver definition
authorMichael Brown <mcb30@ipxe.org>
Thu, 12 Feb 2026 12:20:41 +0000 (12:20 +0000)
committerMichael Brown <mcb30@ipxe.org>
Thu, 12 Feb 2026 12:50:18 +0000 (12:50 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/linux/af_packet.c
src/drivers/linux/linux.c
src/drivers/linux/slirp.c
src/drivers/linux/tap.c
src/include/ipxe/linux.h

index 980bd46269a45c86ff0078e291eec0d7d50e2071..abb01a90a8651691ab3b35b14afbeeffc467cb8f 100644 (file)
@@ -322,5 +322,4 @@ struct linux_driver af_packet_nic_driver __linux_driver = {
        .name = "af_packet",
        .probe = af_packet_nic_probe,
        .remove = af_packet_nic_remove,
-       .can_probe = 1,
 };
index 898f50024a617897fce94c32f2b5c8336fc003b8..64271ef806d0635374a6ba51b9d05571f2c61d2b 100644 (file)
@@ -63,11 +63,6 @@ static int linux_probe(struct root_device *rootdev)
                        continue;
                }
 
-               if (! driver->can_probe) {
-                       printf("Driver '%s' cannot handle any more devices\n", driver->name);
-                       continue;
-               }
-
                /* We found a matching driver so add the device to the hierarchy */
                list_add(&device->dev.siblings, &rootdev->dev.children);
                device->dev.parent = &rootdev->dev;
index d7ab6419e2bc1676af7c9480440d51606f7af701..9ba0742ee43fa1a9f1b3cd7fc91353b39ad60cd4 100644 (file)
@@ -549,5 +549,4 @@ struct linux_driver slirp_driver __linux_driver = {
        .name = "slirp",
        .probe = slirp_probe,
        .remove = slirp_remove,
-       .can_probe = 1,
 };
index c1364ddb504dee3096ec16fe73312a823e0d083d..a4d4e6d59c32c43661eb51891e4c7ee95b80d67a 100644 (file)
@@ -258,5 +258,4 @@ struct linux_driver tap_driver __linux_driver = {
        .name = "tap",
        .probe = tap_probe,
        .remove = tap_remove,
-       .can_probe = 1,
 };
index a01ace3de8f149d5782c81bd5345200afca7a7a9..52c1f0bd745c14d7c05262f2fb03c3d9ec4343aa 100644 (file)
@@ -58,8 +58,6 @@ struct linux_driver {
        int (*probe)(struct linux_device *device, struct linux_device_request *request);
        /** Remove function */
        void (*remove)(struct linux_device *device);
-       /** Can the driver probe any more devices? */
-       int can_probe;
 };
 
 /** Linux driver table */