soc/tegra: fuse: Move register mapping check
authorThierry Reding <treding@nvidia.com>
Mon, 26 Jun 2017 15:21:17 +0000 (17:21 +0200)
committerThierry Reding <treding@nvidia.com>
Wed, 13 Dec 2017 11:43:30 +0000 (12:43 +0100)
commit1f1607dbd9f6efc22f06e16fc11675dd6323aaab
treee86c9849e7bfa578264ac3fed41e65d984299d08
parent83468fe259bf827f350b118f25bce99dc0bdf597
soc/tegra: fuse: Move register mapping check

The tegra_read_chipid() function can be called from places other than
tegra_get_chip_id(), so the check for a valid mapping of the MISC
registers needs to be moved to tegra_read_chipid() to catch all
potential accesses.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/soc/tegra/fuse/tegra-apbmisc.c