aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware/tegra/bpmp-private.h
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2019-02-07 12:50:05 +0100
committerThierry Reding <treding@nvidia.com>2019-02-07 18:52:19 +0100
commit79d031fcad56e27fc4d614d54cd5962cad282473 (patch)
tree3e1f0207ffb5a465045537c132c79f4c80136144 /drivers/firmware/tegra/bpmp-private.h
parentfirmware: tegra: bpmp-tegra186: Remove unused includes (diff)
downloadlinux-dev-79d031fcad56e27fc4d614d54cd5962cad282473.tar.xz
linux-dev-79d031fcad56e27fc4d614d54cd5962cad282473.zip
firmware: tegra: Conditionally support SoC generations
Only include support for Tegra210 and Tegra186 in the BPMP driver if support for those SoCs was selected. This fixes a build failure seen on 32-bit ARM allmodconfig builds, but could also happen on 64-bit ARM builds if either Tegra210 or Tegra186 were not selected. Reported-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Timo Alho <talho@nvidia.com> Tested-by: Timo Alho <talho@nvidia.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/firmware/tegra/bpmp-private.h')
-rw-r--r--drivers/firmware/tegra/bpmp-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/firmware/tegra/bpmp-private.h b/drivers/firmware/tegra/bpmp-private.h
index 07c3d46abb87..cc343f4ebafb 100644
--- a/drivers/firmware/tegra/bpmp-private.h
+++ b/drivers/firmware/tegra/bpmp-private.h
@@ -23,7 +23,11 @@ struct tegra_bpmp_ops {
int (*resume)(struct tegra_bpmp *bpmp);
};
+#if IS_ENABLED(CONFIG_ARCH_TEGRA_186_SOC)
extern const struct tegra_bpmp_ops tegra186_bpmp_ops;
+#endif
+#if IS_ENABLED(CONFIG_ARCH_TEGRA_210_SOC)
extern const struct tegra_bpmp_ops tegra210_bpmp_ops;
+#endif
#endif