[linux] Remove unused can_probe field from driver definition

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2026-02-12 12:20:41 +00:00
parent 8a1dd58502
commit 6e56f7ff25
5 changed files with 0 additions and 10 deletions

View 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,
};

View 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;

View File

@ -549,5 +549,4 @@ struct linux_driver slirp_driver __linux_driver = {
.name = "slirp",
.probe = slirp_probe,
.remove = slirp_remove,
.can_probe = 1,
};

View File

@ -258,5 +258,4 @@ struct linux_driver tap_driver __linux_driver = {
.name = "tap",
.probe = tap_probe,
.remove = tap_remove,
.can_probe = 1,
};

View 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 */