OSDN Git Service

soc/tegra: fuse: Fix build with Tegra194 configuration
authorThierry Reding <treding@nvidia.com>
Mon, 3 Feb 2020 14:31:14 +0000 (15:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Mar 2020 15:42:13 +0000 (16:42 +0100)
commit7fb440c5c3524194864e0d65f8f8c9ee74c09ee2
treeed8adbbf4f3f372675fadea3c3c83a137abdc88a
parent57a526f9c001d7b1bcd47c137d31bd65303cf68a
soc/tegra: fuse: Fix build with Tegra194 configuration

[ Upstream commit 6f4ecbe284df5f22e386a640d9a4b32cede62030 ]

If only Tegra194 support is enabled, the tegra30_fuse_read() and
tegra30_fuse_init() function are not declared and cause a build failure.
Add Tegra194 to the preprocessor guard to make sure these functions are
available for Tegra194-only builds as well.

Link: https://lore.kernel.org/r/20200203143114.3967295-1-thierry.reding@gmail.com
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soc/tegra/fuse/fuse-tegra30.c