diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-26 10:06:57 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-08-26 10:06:57 +0200 |
commit | 47e6a8d6d8eae537ad4a513b0e206bf45e4523ba (patch) | |
tree | 525bc983e37ba64929364ec36a39e681170263bb /drivers/devfreq/devfreq.c | |
parent | a55aa89aab90fae7c815b0551b07be37db359d76 (diff) | |
parent | 0ef7c7cce43f6ecc2b96d447e69b2900a9655f7c (diff) |
Merge tag 'pullreq201908' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq
Pull devfreq changes for v5.4 from MyungJoo Ham:
"This series include:
- Tegra driver fixes
- new Tegra devices
- Rockchip fixes
- Exynos-bus fixes
- Event: add "event type"
- Passive: notifier updates"
* tag 'pullreq201908' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/mzx/devfreq: (27 commits)
PM / devfreq: passive: Use non-devm notifiers
PM / devfreq: exynos-bus: Convert to use dev_pm_opp_set_rate()
PM / devfreq: exynos-bus: Correct clock enable sequence
PM / devfreq: Correct devm_devfreq_remove_device() documentation
PM / devfreq: events: extend events by type of counted data
PM / devfreq: exynos-events: change matching code during probe
PM / devfreq: tegra20: add COMMON_CLK dependency
PM / devfreq: events: add Exynos PPMU new events
PM / devfreq: Fix kernel oops on governor module load
PM / devfreq: rk3399_dmc: Fix spelling typo
PM / devfreq: Fix spelling typo
PM / devfreq: Introduce driver for NVIDIA Tegra20
PM / devfreq: tegra: Rename tegra-devfreq.c to tegra30-devfreq.c
PM / devfreq: tegra: Enable COMPILE_TEST for the driver
PM / devfreq: tegra: Support Tegra30
PM / devfreq: tegra: Reconfigure hardware on governor's restart
PM / devfreq: tegra: Move governor registration to driver's probe
PM / devfreq: tegra: Mark ACTMON's governor as immutable
PM / devfreq: tegra: Avoid inconsistency of current frequency value
PM / devfreq: tegra: Clean up driver's probe / remove
...
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r-- | drivers/devfreq/devfreq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index ab22bf8a12d6..446490c9d635 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -254,7 +254,7 @@ static struct devfreq_governor *try_then_request_governor(const char *name) /* Restore previous state before return */ mutex_lock(&devfreq_list_lock); if (err) - return ERR_PTR(err); + return (err < 0) ? ERR_PTR(err) : ERR_PTR(-EINVAL); governor = find_devfreq_governor(name); } @@ -402,7 +402,7 @@ static void devfreq_monitor(struct work_struct *work) * devfreq_monitor_start() - Start load monitoring of devfreq instance * @devfreq: the devfreq instance. * - * Helper function for starting devfreq device load monitoing. By + * Helper function for starting devfreq device load monitoring. By * default delayed work based monitoring is supported. Function * to be called from governor in response to DEVFREQ_GOV_START * event when device is added to devfreq framework. @@ -420,7 +420,7 @@ EXPORT_SYMBOL(devfreq_monitor_start); * devfreq_monitor_stop() - Stop load monitoring of a devfreq instance * @devfreq: the devfreq instance. * - * Helper function to stop devfreq device load monitoing. Function + * Helper function to stop devfreq device load monitoring. Function * to be called from governor in response to DEVFREQ_GOV_STOP * event when device is removed from devfreq framework. */ @@ -434,7 +434,7 @@ EXPORT_SYMBOL(devfreq_monitor_stop); * devfreq_monitor_suspend() - Suspend load monitoring of a devfreq instance * @devfreq: the devfreq instance. * - * Helper function to suspend devfreq device load monitoing. Function + * Helper function to suspend devfreq device load monitoring. Function * to be called from governor in response to DEVFREQ_GOV_SUSPEND * event or when polling interval is set to zero. * @@ -461,7 +461,7 @@ EXPORT_SYMBOL(devfreq_monitor_suspend); * devfreq_monitor_resume() - Resume load monitoring of a devfreq instance * @devfreq: the devfreq instance. * - * Helper function to resume devfreq device load monitoing. Function + * Helper function to resume devfreq device load monitoring. Function * to be called from governor in response to DEVFREQ_GOV_RESUME * event or when polling interval is set to non-zero. */ @@ -867,7 +867,7 @@ EXPORT_SYMBOL_GPL(devfreq_get_devfreq_by_phandle); /** * devm_devfreq_remove_device() - Resource-managed devfreq_remove_device() - * @dev: the device to add devfreq feature. + * @dev: the device from which to remove devfreq feature. * @devfreq: the devfreq instance to be removed */ void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq) |