mirror of
https://github.com/ipxe/ipxe.git
synced 2026-05-05 04:16:33 +02:00
[linux] Remove unused can_probe field from driver definition
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
8a1dd58502
commit
6e56f7ff25
@ -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,
|
||||
};
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -549,5 +549,4 @@ struct linux_driver slirp_driver __linux_driver = {
|
||||
.name = "slirp",
|
||||
.probe = slirp_probe,
|
||||
.remove = slirp_remove,
|
||||
.can_probe = 1,
|
||||
};
|
||||
|
||||
@ -258,5 +258,4 @@ struct linux_driver tap_driver __linux_driver = {
|
||||
.name = "tap",
|
||||
.probe = tap_probe,
|
||||
.remove = tap_remove,
|
||||
.can_probe = 1,
|
||||
};
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user