lkml.org 
[lkml]   [2014]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCHv2 0/5] devfreq: Support resource management functions and code clean
Date
This patchset fix devfreq_remove_device() to remove duplicate function call
of _remove_devfreq() and add following functions for the resource management
of devfreq device and simpify the control of resource on exynos4_bus/exynos5_bus
driver.
- devm_devfreq_add_device
- devm_devfreq_remove_device
- devm_devfreq_register_opp_notifier
- devm_devfreq_unregister_opp_notifier

Changes from v1:
- Remove empty function (exynos5_init_exit) and propogate the return value
without additonal local variable if failed to call devm_devfreqw_add_device
in exynos5_busfreq.c.
- Fix return value from -ENOMEM to -ENOSYS in devm_devfreq_add_device() inline
function.
- Fix minor coding style of devm_devfreq_dev_match()

Chanwoo Choi (5):
devfreq: Fix devfreq_remove_device() to improve the sequence of resource free
devfreq: Add resource-managed function for devfreq device
devfreq: Add devm_devfreq_{register,unregister}_opp_notfier function
devfreq: exynos4: Use devm_devfreq_* function using device resource management
devfreq: exynos5: Use devm_devfreq_* function using device resource management

drivers/devfreq/devfreq.c | 125 ++++++++++++++++++++++++++++++++---
drivers/devfreq/exynos/exynos4_bus.c | 19 ++----
drivers/devfreq/exynos/exynos5_bus.c | 29 +++-----
include/linux/devfreq.h | 35 +++++++++-
4 files changed, 161 insertions(+), 47 deletions(-)

--
1.8.0



\
 
 \ /
  Last update: 2014-05-09 10:42    [W:0.051 / U:57.696 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site