]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
ata: sata: Drop empty bootdev_ops structure
authorTom Rini <trini@konsulko.com>
Tue, 19 May 2026 13:53:14 +0000 (07:53 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 May 2026 14:18:29 +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/ata/sata_bootdev.c

index a5ca6f6fd5bb7a55d3d2956973daab9322fbfbae..7d5ef3c94bfa95cf28190e8ed3723376c5ce7564 100644 (file)
@@ -37,9 +37,6 @@ static int sata_bootdev_hunt(struct bootdev_hunter *info, bool show)
        return 0;
 }
 
-struct bootdev_ops sata_bootdev_ops = {
-};
-
 static const struct udevice_id sata_bootdev_ids[] = {
        { .compatible = "u-boot,bootdev-sata" },
        { }
@@ -48,7 +45,6 @@ static const struct udevice_id sata_bootdev_ids[] = {
 U_BOOT_DRIVER(sata_bootdev) = {
        .name           = "sata_bootdev",
        .id             = UCLASS_BOOTDEV,
-       .ops            = &sata_bootdev_ops,
        .bind           = sata_bootdev_bind,
        .of_match       = sata_bootdev_ids,
 };