]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: Fix the bug of devfreq_add_device when governor is NULL
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 28 Dec 2016 11:52:35 +0000 (20:52 +0900)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Jan 2017 23:21:45 +0000 (00:21 +0100)
commitc43ed4f2e4c2a6cf0ea701ae461f037beec1351e
tree81346e17f4b5c66e0d449275feaa449619f95c55
parentb41a54d092000172ae0b7897388f7bfae86b05e0
PM / devfreq: Fix the bug of devfreq_add_device when governor is NULL

This patch fixes the bug of devfreq_add_device(). The devfreq device must
have the default governor. If find_devfreq_governor() returns error,
devfreq_add_device() fail to add the devfreq instance.

Fixes: 5cf07588e334 (PM / devfreq: map devfreq drivers to governor using name)
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/devfreq/devfreq.c