summaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/devfreq.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/devfreq/devfreq.c')
-rw-r--r--drivers/devfreq/devfreq.c12
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)
254 /* Restore previous state before return */ 254 /* Restore previous state before return */
255 mutex_lock(&devfreq_list_lock); 255 mutex_lock(&devfreq_list_lock);
256 if (err) 256 if (err)
257 return ERR_PTR(err); 257 return (err < 0) ? ERR_PTR(err) : ERR_PTR(-EINVAL);
258 258
259 governor = find_devfreq_governor(name); 259 governor = find_devfreq_governor(name);
260 } 260 }
@@ -402,7 +402,7 @@ static void devfreq_monitor(struct work_struct *work)
402 * devfreq_monitor_start() - Start load monitoring of devfreq instance 402 * devfreq_monitor_start() - Start load monitoring of devfreq instance
403 * @devfreq: the devfreq instance. 403 * @devfreq: the devfreq instance.
404 * 404 *
405 * Helper function for starting devfreq device load monitoing. By 405 * Helper function for starting devfreq device load monitoring. By
406 * default delayed work based monitoring is supported. Function 406 * default delayed work based monitoring is supported. Function
407 * to be called from governor in response to DEVFREQ_GOV_START 407 * to be called from governor in response to DEVFREQ_GOV_START
408 * event when device is added to devfreq framework. 408 * event when device is added to devfreq framework.
@@ -420,7 +420,7 @@ EXPORT_SYMBOL(devfreq_monitor_start);
420 * devfreq_monitor_stop() - Stop load monitoring of a devfreq instance 420 * devfreq_monitor_stop() - Stop load monitoring of a devfreq instance
421 * @devfreq: the devfreq instance. 421 * @devfreq: the devfreq instance.
422 * 422 *
423 * Helper function to stop devfreq device load monitoing. Function 423 * Helper function to stop devfreq device load monitoring. Function
424 * to be called from governor in response to DEVFREQ_GOV_STOP 424 * to be called from governor in response to DEVFREQ_GOV_STOP
425 * event when device is removed from devfreq framework. 425 * event when device is removed from devfreq framework.
426 */ 426 */
@@ -434,7 +434,7 @@ EXPORT_SYMBOL(devfreq_monitor_stop);
434 * devfreq_monitor_suspend() - Suspend load monitoring of a devfreq instance 434 * devfreq_monitor_suspend() - Suspend load monitoring of a devfreq instance
435 * @devfreq: the devfreq instance. 435 * @devfreq: the devfreq instance.
436 * 436 *
437 * Helper function to suspend devfreq device load monitoing. Function 437 * Helper function to suspend devfreq device load monitoring. Function
438 * to be called from governor in response to DEVFREQ_GOV_SUSPEND 438 * to be called from governor in response to DEVFREQ_GOV_SUSPEND
439 * event or when polling interval is set to zero. 439 * event or when polling interval is set to zero.
440 * 440 *
@@ -461,7 +461,7 @@ EXPORT_SYMBOL(devfreq_monitor_suspend);
461 * devfreq_monitor_resume() - Resume load monitoring of a devfreq instance 461 * devfreq_monitor_resume() - Resume load monitoring of a devfreq instance
462 * @devfreq: the devfreq instance. 462 * @devfreq: the devfreq instance.
463 * 463 *
464 * Helper function to resume devfreq device load monitoing. Function 464 * Helper function to resume devfreq device load monitoring. Function
465 * to be called from governor in response to DEVFREQ_GOV_RESUME 465 * to be called from governor in response to DEVFREQ_GOV_RESUME
466 * event or when polling interval is set to non-zero. 466 * event or when polling interval is set to non-zero.
467 */ 467 */
@@ -867,7 +867,7 @@ EXPORT_SYMBOL_GPL(devfreq_get_devfreq_by_phandle);
867 867
868/** 868/**
869 * devm_devfreq_remove_device() - Resource-managed devfreq_remove_device() 869 * devm_devfreq_remove_device() - Resource-managed devfreq_remove_device()
870 * @dev: the device to add devfreq feature. 870 * @dev: the device from which to remove devfreq feature.
871 * @devfreq: the devfreq instance to be removed 871 * @devfreq: the devfreq instance to be removed
872 */ 872 */
873void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq) 873void devm_devfreq_remove_device(struct device *dev, struct devfreq *devfreq)