diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-06-06 10:22:42 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-06-12 19:51:21 +0200 |
commit | 49776c712eb6ded12fcbb8cc915a498dbfb47311 (patch) | |
tree | 3f929025c93859e6a3d430451ac64c78ef6062a8 /drivers/thermal | |
parent | powercap: RAPL: Fix CONFIG_IOSF_MBI dependency (diff) | |
download | linux-49776c712eb6ded12fcbb8cc915a498dbfb47311.tar.xz linux-49776c712eb6ded12fcbb8cc915a498dbfb47311.zip |
powercap: RAPL: Fix a NULL vs IS_ERR() bug
The devm_ioremap_resource() function returns error pointers on error,
it never returns NULL. Update the check accordingly.
Fixes: 9eef7f9da928 ("powercap: intel_rapl: Introduce RAPL TPMI interface driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/thermal')
0 files changed, 0 insertions, 0 deletions