]> git.baikalelectronics.ru Git - kernel.git/commit
soc/tegra: Restrict SoC device registration to Tegra
authorThierry Reding <treding@nvidia.com>
Wed, 23 Aug 2017 09:25:08 +0000 (11:25 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 23 Aug 2017 09:54:10 +0000 (11:54 +0200)
commit338d2a37bb54e5bc310708d46cfc372ba347c867
tree93fe1d18195ce71f7ee97d8e6a43f9b55ce3fb2f
parent79e780494407038b67de80d720ec6b3ba8a2999e
soc/tegra: Restrict SoC device registration to Tegra

Commit 8a46828e623c ("soc/tegra: Register SoC device") added an initcall
to register the SoC device on Tegra. However, that code is unrestricted
and will run on all platforms, causing unwanted warnings.

Fix this by first checking that we're running on hardware that supports
the fuses block that we use to provide SoC information.

Fixes: 8a46828e623c ("soc/tegra: Register SoC device")
Reported-by: Sudeep Holla <sudeep.holla@arm.com>
Tested-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/soc/tegra/fuse/fuse-tegra.c