]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
PM / devfreq: Propagate error from devfreq_add_device()
authorBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 6 Nov 2017 05:27:41 +0000 (21:27 -0800)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 23 Feb 2018 14:26:32 +0000 (08:26 -0600)
commitfa8fbc68d398540c83c0db8944137276c505acb0
tree1cc0fb2601159a70faa9ef3b40f951db3aab92b5
parentcf0de9a0d52ff64bcb6b20b6fa4b5d3eb4637719
PM / devfreq: Propagate error from devfreq_add_device()

BugLink: http://bugs.launchpad.net/bugs/1751131
commit d1bf2d30728f310f72296b54f0651ecdb09cbb12 upstream.

Propagate the error of devfreq_add_device() in devm_devfreq_add_device()
rather than statically returning ENOMEM. This makes it slightly faster
to pinpoint the cause of a returned error.

Fixes: 8cd84092d35e ("PM / devfreq: Add resource-managed function for devfreq device")
Cc: stable@vger.kernel.org
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/devfreq/devfreq.c