linux/drivers/devfreq
Enric Balletbo i Serra b53b012805 PM / devfreq: Fix static checker warning in try_then_request_governor
The patch 23c7b54ca1: "PM / devfreq: Fix devfreq_add_device() when
drivers are built as modules." leads to the following static checker
warning:

    drivers/devfreq/devfreq.c:1043 governor_store()
    warn: 'governor' can also be NULL

The reason is that the try_then_request_governor() function returns both
error pointers and NULL. It should just return error pointers, so fix
this by returning a ERR_PTR to the error intead of returning NULL.

Fixes: 23c7b54ca1 ("PM / devfreq: Fix devfreq_add_device() when drivers are built as modules.")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
2019-04-16 09:29:18 +09:00
..
event PM / devfreq: rockchip-dfi: remove unneeded semicolon 2019-04-16 09:29:18 +09:00
devfreq-event.c PM / devfreq: Use of_node_name_eq for node name comparisons 2019-04-16 09:29:18 +09:00
devfreq.c PM / devfreq: Fix static checker warning in try_then_request_governor 2019-04-16 09:29:18 +09:00
exynos-bus.c PM / devfreq: Define the constant governor name 2017-10-26 17:08:40 +09:00
governor_passive.c PM / devfreq: Define the constant governor name 2017-10-26 17:08:40 +09:00
governor_performance.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor_powersave.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor_simpleondemand.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor_userspace.c PM / devfreq: Don't adjust to user limits in governors 2018-10-02 10:16:41 +09:00
governor.h PM / devfreq: Make update_devfreq() public 2018-10-02 10:16:41 +09:00
Kconfig PM / devfreq: Add dependency on PM_OPP 2017-08-28 10:23:57 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rk3399_dmc.c PM / devfreq: rk3399_dmc: remove unneeded semicolon 2019-04-16 09:29:18 +09:00
tegra-devfreq.c PM / devfreq: tegra: remove unneeded variable 2019-04-16 09:29:18 +09:00