Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

PM / devfreq: exynos-bus: Fix the wrong return value

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>

authored by

Chanwoo Choi and committed by
Rafael J. Wysocki
32dd7731 73613b16

+1 -1
+1 -1
drivers/devfreq/exynos-bus.c
··· 497 497 if (IS_ERR(bus->devfreq)) { 498 498 dev_err(dev, 499 499 "failed to add devfreq dev with passive governor\n"); 500 - ret = -EPROBE_DEFER; 500 + ret = PTR_ERR(bus->devfreq); 501 501 goto err; 502 502 } 503 503