diff options
author | Vladimir Zapolskiy <vz@mleia.com> | 2016-03-06 02:21:35 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-03-16 02:14:11 +0100 |
commit | 4d3ac6662452060721599a3392bc2f524af984cb (patch) | |
tree | ce96ba06e0e2ecc0522bea8e6d9a9ccdb92a5772 /Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt | |
parent | clk: renesas: div6: use RENESAS for #define (diff) | |
download | linux-4d3ac6662452060721599a3392bc2f524af984cb.tar.xz linux-4d3ac6662452060721599a3392bc2f524af984cb.zip |
clk: bcm2835: fix check of error code returned by devm_ioremap_resource()
The change fixes potential oops while accessing iomem on invalid
address, if devm_ioremap_resource() fails due to some reason.
The devm_ioremap_resource() function returns ERR_PTR() and never
returns NULL, which makes useless a following check for NULL.
Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Fixes: 5e63dcc74b30 ("clk: bcm2835: Add a driver for the auxiliary peripheral clock gates")
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon/nsa320-mcu.txt')
0 files changed, 0 insertions, 0 deletions