From: Bin Meng Date: Mon, 1 Feb 2016 09:40:53 +0000 (-0800) Subject: x86: tnc: Change disable_igd() to have a return value X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=9e36c53dd0b86d8e19c764945401440dee65d016;p=u-boot.git x86: tnc: Change disable_igd() to have a return value So far disable_igd() does not have any return value, but we may need that in the future. Signed-off-by: Bin Meng Reviewed-by: Simon Glass Tested-by: Simon Glass --- diff --git a/arch/x86/cpu/queensbay/tnc.c b/arch/x86/cpu/queensbay/tnc.c index f9fddc1ba7..8b79505819 100644 --- a/arch/x86/cpu/queensbay/tnc.c +++ b/arch/x86/cpu/queensbay/tnc.c @@ -14,7 +14,7 @@ #include #include -static void __maybe_unused disable_igd(void) +static int __maybe_unused disable_igd(void) { /* * According to Atom E6xx datasheet, setting VGA Disable (bit17) @@ -36,6 +36,8 @@ static void __maybe_unused disable_igd(void) */ x86_pci_write_config32(TNC_IGD, IGD_FD, FUNC_DISABLE); x86_pci_write_config32(TNC_SDVO, IGD_FD, FUNC_DISABLE); + + return 0; } int arch_cpu_init(void) @@ -53,9 +55,11 @@ int arch_cpu_init(void) int arch_early_init_r(void) { + int ret = 0; + #ifdef CONFIG_DISABLE_IGD - disable_igd(); + ret = disable_igd(); #endif - return 0; + return ret; }