[PATCH 3/5] ata: sata: Drop empty bootdev_ops structure

Tom Rini trini at konsulko.com
Tue May 19 17:18:18 CEST 2026


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 at konsulko.com>
---
 drivers/ata/sata_bootdev.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/drivers/ata/sata_bootdev.c b/drivers/ata/sata_bootdev.c
index a5ca6f6fd5bb..7d5ef3c94bfa 100644
--- a/drivers/ata/sata_bootdev.c
+++ b/drivers/ata/sata_bootdev.c
@@ -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,
 };
-- 
2.43.0



More information about the U-Boot mailing list