summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2018-04-18 16:50:04 +0200
committerStephen Boyd <sboyd@kernel.org>2018-05-02 08:34:59 -0700
commit3fd0121b0242dacc020046dade5a0362b6522c5b (patch)
tree2aadf87eea009f673eed7cadf81d8368bfe1e81e /drivers/pinctrl
parent54d52ad940bb50284c85adcf481413fb3b82925a (diff)
downloadlinux-stable-3fd0121b0242dacc020046dade5a0362b6522c5b.tar.gz
linux-stable-3fd0121b0242dacc020046dade5a0362b6522c5b.tar.bz2
linux-stable-3fd0121b0242dacc020046dade5a0362b6522c5b.zip
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>
Diffstat (limited to 'drivers/pinctrl')
0 files changed, 0 insertions, 0 deletions