efi: Set feature flags inside feature init functions
authorMatt Fleming <matt.fleming@intel.com>
Wed, 15 Jan 2014 13:36:33 +0000 (13:36 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 4 Mar 2014 16:16:16 +0000 (16:16 +0000)
commit0f8093a92da77afe24fd258a5a1037bb2b97a870
treeacd0f1a2db891fb906e33014fc5356f0f4c80acd
parent3e909599215456928e6b42a04f11c2517881570b
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>
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi.c