]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
x86: tnc: Change disable_igd() to have a return value
authorBin Meng <bmeng.cn@gmail.com>
Mon, 1 Feb 2016 09:40:53 +0000 (01:40 -0800)
committerBin Meng <bmeng.cn@gmail.com>
Fri, 5 Feb 2016 04:47:22 +0000 (12:47 +0800)
So far disable_igd() does not have any return value, but we may need
that in the future.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
arch/x86/cpu/queensbay/tnc.c

index f9fddc1ba7645ade8246f116a77e3aa7a5f82c3c..8b79505819730f7e76c17faaa5868c4a258b61c4 100644 (file)
@@ -14,7 +14,7 @@
 #include <asm/fsp/fsp_support.h>
 #include <asm/processor.h>
 
-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;
 }