From f426d46a0e6a7fb07e01c6ffc618750cd7dab8f6 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Sat, 17 Feb 2018 07:08:48 +0100 Subject: [PATCH] fix compilation Change-Id: I95c72aba7ec2822531ac57aefc7990b49059c577 --- src/soc/nvidia/tegra210/mtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/soc/nvidia/tegra210/mtc.c b/src/soc/nvidia/tegra210/mtc.c index d4941de732..a7bbe2accf 100644 --- a/src/soc/nvidia/tegra210/mtc.c +++ b/src/soc/nvidia/tegra210/mtc.c @@ -146,8 +146,10 @@ int tegra210_run_mtc(void) struct cbfsf mtc_file; void * const mtc = (void *)(uintptr_t)CONFIG_MTC_ADDRESS; +#if !IS_ENABLED(CONFIG_HAVE_MTC_TABLES) void *dvfs_table; size_t (*mtc_fw)(void **dvfs_table) = (void *)mtc; +#endif if (cbfs_boot_locate(&mtc_file, "tegra_mtc.bin", NULL)) { printk(BIOS_ERR, "MTC file not found: tegra_mtc.bin\n");