]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
block: ide: Drop empty bootdev_ops structure
authorTom Rini <trini@konsulko.com>
Mon, 18 May 2026 21:49:52 +0000 (15:49 -0600)
committerTom Rini <trini@konsulko.com>
Tue, 19 May 2026 14:17:23 +0000 (08:17 -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/block/ide.c

index cab5e1bc92b2b163db494cb163fdea033fa663bc..c1a46dd2a946d7e2e42dcebe6758b1ace454f6a8 100644 (file)
@@ -969,9 +969,6 @@ static int ide_bootdev_hunt(struct bootdev_hunter *info, bool show)
        return 0;
 }
 
-struct bootdev_ops ide_bootdev_ops = {
-};
-
 static const struct udevice_id ide_bootdev_ids[] = {
        { .compatible = "u-boot,bootdev-ide" },
        { }
@@ -980,7 +977,6 @@ static const struct udevice_id ide_bootdev_ids[] = {
 U_BOOT_DRIVER(ide_bootdev) = {
        .name           = "ide_bootdev",
        .id             = UCLASS_BOOTDEV,
-       .ops            = &ide_bootdev_ops,
        .bind           = ide_bootdev_bind,
        .of_match       = ide_bootdev_ids,
 };