mirror of
https://github.com/ipxe/ipxe
synced 2026-05-18 10:00:30 +03:00
[linux] Remove unused can_probe field from driver definition
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -322,5 +322,4 @@ struct linux_driver af_packet_nic_driver __linux_driver = {
|
|||||||
.name = "af_packet",
|
.name = "af_packet",
|
||||||
.probe = af_packet_nic_probe,
|
.probe = af_packet_nic_probe,
|
||||||
.remove = af_packet_nic_remove,
|
.remove = af_packet_nic_remove,
|
||||||
.can_probe = 1,
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -63,11 +63,6 @@ static int linux_probe(struct root_device *rootdev)
|
|||||||
continue;
|
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 */
|
/* We found a matching driver so add the device to the hierarchy */
|
||||||
list_add(&device->dev.siblings, &rootdev->dev.children);
|
list_add(&device->dev.siblings, &rootdev->dev.children);
|
||||||
device->dev.parent = &rootdev->dev;
|
device->dev.parent = &rootdev->dev;
|
||||||
|
|||||||
@@ -549,5 +549,4 @@ struct linux_driver slirp_driver __linux_driver = {
|
|||||||
.name = "slirp",
|
.name = "slirp",
|
||||||
.probe = slirp_probe,
|
.probe = slirp_probe,
|
||||||
.remove = slirp_remove,
|
.remove = slirp_remove,
|
||||||
.can_probe = 1,
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -258,5 +258,4 @@ struct linux_driver tap_driver __linux_driver = {
|
|||||||
.name = "tap",
|
.name = "tap",
|
||||||
.probe = tap_probe,
|
.probe = tap_probe,
|
||||||
.remove = tap_remove,
|
.remove = tap_remove,
|
||||||
.can_probe = 1,
|
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -58,8 +58,6 @@ struct linux_driver {
|
|||||||
int (*probe)(struct linux_device *device, struct linux_device_request *request);
|
int (*probe)(struct linux_device *device, struct linux_device_request *request);
|
||||||
/** Remove function */
|
/** Remove function */
|
||||||
void (*remove)(struct linux_device *device);
|
void (*remove)(struct linux_device *device);
|
||||||
/** Can the driver probe any more devices? */
|
|
||||||
int can_probe;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Linux driver table */
|
/** Linux driver table */
|
||||||
|
|||||||
Reference in New Issue
Block a user