mbox series

[0/6] Misc devfreq_add_device() fixes

Message ID 20180424223521.28193-1-bjorn.andersson@linaro.org
Headers show
Series Misc devfreq_add_device() fixes | expand

Message

Bjorn Andersson April 24, 2018, 10:35 p.m. UTC
The first 5 patches corrects error handling, reoder things and stop holding the
devfreq mutex in devfreq_add_device(). The last patch validates that a client
doesn't attempt to provide a freq_table, as the implementation relies on the
freq_table being an internal representation of the associated device's opp
table.

Bjorn Andersson (6):
  PM / devfreq: Free devfreq upon set_freq_table error
  PM / devfreq: Use the device release function for cleanup
  PM / devfreq: Reorder devfreq_add_device()
  PM / devfreq: Remove unnecessary locking
  PM / devfreq: Use put_device() on device_register error
  PM / devfreq: Reject client provided freq_table

 drivers/devfreq/devfreq.c | 73 ++++++++++++++++++++---------------------------
 1 file changed, 31 insertions(+), 42 deletions(-)

-- 
2.16.2