diff options
author | Matt Fleming <matt.fleming@intel.com> | 2014-01-15 14:36:33 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-03-04 17:16:16 +0100 |
commit | 0f8093a92da77afe24fd258a5a1037bb2b97a870 (patch) | |
tree | acd0f1a2db891fb906e33014fc5356f0f4c80acd /drivers/firmware | |
parent | efi: Move facility flags to struct efi (diff) | |
download | linux-0f8093a92da77afe24fd258a5a1037bb2b97a870.tar.xz linux-0f8093a92da77afe24fd258a5a1037bb2b97a870.zip |
efi: Set feature flags inside feature init functions
It makes more sense to set the feature flag in the success path of the
detection function than it does to rely on the caller doing it. Apart
from it being more logical to group the code and data together, it sets
a much better example for new EFI architectures.
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/efi/efi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 4753bac65279..b25b36b1ef23 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -313,5 +313,8 @@ int __init efi_config_init(efi_config_table_type_t *arch_tables) } pr_cont("\n"); early_iounmap(config_tables, efi.systab->nr_tables * sz); + + set_bit(EFI_CONFIG_TABLES, &efi.flags); + return 0; } |