PM / devfreq: exynos-bus: Fix the wrong return value
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 28 Dec 2016 11:52:36 +0000 (20:52 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:44 +0000 (08:24 +0100)
commit7959835473173638527f3d294fcccb1b1697bd92
tree14dfbaf3477e39085b0cf1b86d1a84668488b9a4
parent16236802bfecb1082144a48b7d6fa60997824662
PM / devfreq: exynos-bus: Fix the wrong return value

commit 32dd7731699765f21dbe6df9020e613d4ed73fc3 upstream.

This patch fixes the wrong return value. If devfreq driver requires the wrong
and non-available governor, it is fail. So, this patch returns the error
insead of -EPROBE_DEFER.

Fixes: 403e0689d2a9 (PM / devfreq: exynos: Add support of bus frequency of sub-blocks using passive governor)
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/devfreq/exynos-bus.c