]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
scsi: Drop empty bootdev_ops structure
authorTom Rini <trini@konsulko.com>
Tue, 19 May 2026 13:53:19 +0000 (07:53 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 May 2026 14:18:44 +0000 (08:18 -0600)
We don't need to provide an empty struct here now that the caller can
handle this being empty.

Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/scsi/scsi_bootdev.c

index 28e4612f337c4524637be2d185762e9ff0bcd73d..541b021b732ceace3af47ec1304b35a301a15eca 100644 (file)
@@ -37,9 +37,6 @@ static int scsi_bootdev_hunt(struct bootdev_hunter *info, bool show)
        return 0;
 }
 
-struct bootdev_ops scsi_bootdev_ops = {
-};
-
 static const struct udevice_id scsi_bootdev_ids[] = {
        { .compatible = "u-boot,bootdev-scsi" },
        { }
@@ -48,7 +45,6 @@ static const struct udevice_id scsi_bootdev_ids[] = {
 U_BOOT_DRIVER(scsi_bootdev) = {
        .name           = "scsi_bootdev",
        .id             = UCLASS_BOOTDEV,
-       .ops            = &scsi_bootdev_ops,
        .bind           = scsi_bootdev_bind,
        .of_match       = scsi_bootdev_ids,
 };