[PATCH] kconfig: fix restart for choice symbols
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / scripts / kconfig / conf.c
index bc20cab9d0d6b184d9c3479d3b20584ac386b4d5..dffbf2ea1f9dcbfcb407947101e7fada6bf1818b 100644 (file)
@@ -467,15 +467,14 @@ static void check_conf(struct menu *menu)
                return;
 
        sym = menu->sym;
-       if (sym) {
-               if (sym_is_changable(sym) && !sym_has_value(sym)) {
+       if (sym && !sym_has_value(sym)) {
+               if (sym_is_changable(sym) ||
+                   (sym_is_choice(sym) && sym_get_tristate_value(sym) == yes)) {
                        if (!conf_cnt++)
                                printf(_("*\n* Restart config...\n*\n"));
                        rootEntry = menu_get_parent_menu(menu);
                        conf(rootEntry);
                }
-               if (sym_is_choice(sym) && sym_get_tristate_value(sym) != mod)
-                       return;
        }
 
        for (child = menu->list; child; child = child->next)