diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2021-08-03 01:13:33 +0300 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2021-08-11 12:54:48 +0300 |
commit | a65a4ea1563218b401a9a638a198e2b8165e967a (patch) | |
tree | eac5e25b9891d8fe053be87b49d2eebe0901e90a | |
parent | 9c93ccfc86f2cdeab8a34408759abad594e439b9 (diff) | |
download | linux-a65a4ea1563218b401a9a638a198e2b8165e967a.tar.xz |
soc/tegra: fuse: Clear fuse->clk on driver probe failure
The fuse->clk must be cleared if FUSE driver fails to probe, otherwise
tegra_fuse_readl() will crash. It's unlikely to happen in practice,
nevertheless let's correct it for completeness.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/soc/tegra/fuse/fuse-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index 3d9da3d359da..2434c570b53c 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -246,6 +246,7 @@ static int tegra_fuse_probe(struct platform_device *pdev) return 0; restore: + fuse->clk = NULL; fuse->base = base; return err; } |