env: Adjust the load() method to return an error
[oweals/u-boot.git] / include / environment.h
index ba8af28414be611d437b1b41117237f4ac0230ab..03b41e0c51160d295b17f4764abfb4cb6dff312e 100644 (file)
@@ -236,8 +236,10 @@ struct env_driver {
         *
         * This method is optional. If not provided, no environment will be
         * loaded.
+        *
+        * @return 0 if OK, -ve on error
         */
-       void (*load)(void);
+       int (*load)(void);
 
        /**
         * save() - Save the environment to storage