diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2019-11-20 15:59:26 +0100 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2019-12-10 11:43:37 +0100 |
commit | db23808615e29d9a04f96806cac56f78b0fee0ef (patch) | |
tree | 1f281ab2c820c26fe28a1f50bb90ec7560052bd2 /net/rfkill | |
parent | 723c0011c7f6992f57e2c629fa9c89141acc115f (diff) | |
download | linux-db23808615e29d9a04f96806cac56f78b0fee0ef.tar.gz linux-db23808615e29d9a04f96806cac56f78b0fee0ef.tar.bz2 linux-db23808615e29d9a04f96806cac56f78b0fee0ef.zip |
reset: Do not register resource data for missing resets
When an optional reset is not present, __devm_reset_control_get() and
devm_reset_control_array_get() still register resource data to release
the non-existing reset on cleanup, which is futile.
Fix this by skipping NULL reset control pointers.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Diffstat (limited to 'net/rfkill')
0 files changed, 0 insertions, 0 deletions