vpl: Add Kconfig options for VPL
[platform/kernel/u-boot.git] / common / hwconfig.c
index 26a561c..43566b8 100644 (file)
@@ -83,7 +83,9 @@ static const char *__hwconfig(const char *opt, size_t *arglen,
                                        "and before environment is ready\n");
                        return NULL;
                }
+#if CONFIG_IS_ENABLED(ENV_SUPPORT)
                env_hwconfig = env_get("hwconfig");
+#endif
        }
 
        if (env_hwconfig) {
@@ -179,7 +181,7 @@ int hwconfig_arg_cmp_f(const char *opt, const char *arg, char *buf)
  *
  * This call is similar to hwconfig_f(), except that it takes additional
  * argument @subopt. In this example:
- *     "dr_usb:mode=peripheral"
+ *     "dr_usb:mode=peripheral"
  * "dr_usb" is an option, "mode" is a sub-option, and "peripheral" is its
  * argument.
  */