Set the ops structure as static const. The structure is not accessible
from outside of this driver and is not going to be modified at runtime.

Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 drivers/ata/sata_bootdev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ata/sata_bootdev.c b/drivers/ata/sata_bootdev.c
index a5ca6f6fd5b..85f30040d05 100644
--- a/drivers/ata/sata_bootdev.c
+++ b/drivers/ata/sata_bootdev.c
@@ -37,7 +37,7 @@ static int sata_bootdev_hunt(struct bootdev_hunter *info, 
bool show)
        return 0;
 }
 
-struct bootdev_ops sata_bootdev_ops = {
+static const struct bootdev_ops sata_bootdev_ops = {
 };
 
 static const struct udevice_id sata_bootdev_ids[] = {
-- 
2.53.0

Reply via email to