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>
This commit is contained in:
Dmitry Osipenko 2021-08-03 01:13:33 +03:00 committed by Thierry Reding
parent 9c93ccfc86
commit a65a4ea156

View File

@ -246,6 +246,7 @@ static int tegra_fuse_probe(struct platform_device *pdev)
return 0; return 0;
restore: restore:
fuse->clk = NULL;
fuse->base = base; fuse->base = base;
return err; return err;
} }