linux_dsm_epyc7002/drivers/soc/tegra
Geert Uytterhoeven 3fd0121b02 soc/tegra: pmc: Use of_clk_get_parent_count() instead of open coding
As of_clk_get_parent_count() returns zero on failure, while
of_count_phandle_with_args() might return a negative error code, this
also fixes the issue of possibly using a very big number in the
allocation below.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
2018-05-02 08:34:59 -07:00
..
fuse soc/tegra: fuse: Explicitly request DMA channel from APB DMA driver 2017-12-21 17:04:12 +01:00
common.c soc/tegra: Add Tegra210 support 2015-07-16 09:47:59 +02:00
flowctrl.c soc/tegra: flowctrl: Fix error handling 2017-06-13 16:47:44 +02:00
Kconfig soc/tegra: Add Tegra194 SoC configuration option 2018-03-08 16:44:01 +01:00
Makefile soc/tegra: pmc: Consolidate Tegra186 support 2017-12-13 13:06:44 +01:00
pmc.c soc/tegra: pmc: Use of_clk_get_parent_count() instead of open coding 2018-05-02 08:34:59 -07:00
powergate-bpmp.c soc/tegra: bpmp: Check BPMP response return code 2017-10-19 16:33:57 +02:00