aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/devfreq/exynos-bus.c
diff options
context:
space:
mode:
authorChanwoo Choi <cw00.choi@samsung.com>2017-10-22 21:32:12 -0400
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-10-26 04:08:40 -0400
commitaa7c352f9841ab3fee5bf1de127a45e6310124a6 (patch)
tree3a95dab606658bba4293771d4b925cfd2383382d /drivers/devfreq/exynos-bus.c
parentccc4c3bcbb7de3cb61723f7584c01c3bde6cfbbb (diff)
PM / devfreq: Define the constant governor name
Prior to that, the devfreq device uses the governor name when adding the itself. In order to prevent the mistake used the wrong governor name, this patch defines the governor name as a constant and then uses them instead of using the string directly. Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Cc: Kukjin Kim <kgene@kernel.org> Cc: Krzysztof Kozlowski <krzk@kernel.org> Cc: linux-samsung-soc@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'drivers/devfreq/exynos-bus.c')
-rw-r--r--drivers/devfreq/exynos-bus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c
index 49f68929e024..c25658b26598 100644
--- a/drivers/devfreq/exynos-bus.c
+++ b/drivers/devfreq/exynos-bus.c
@@ -436,7 +436,8 @@ static int exynos_bus_probe(struct platform_device *pdev)
436 ondemand_data->downdifferential = 5; 436 ondemand_data->downdifferential = 5;
437 437
438 /* Add devfreq device to monitor and handle the exynos bus */ 438 /* Add devfreq device to monitor and handle the exynos bus */
439 bus->devfreq = devm_devfreq_add_device(dev, profile, "simple_ondemand", 439 bus->devfreq = devm_devfreq_add_device(dev, profile,
440 DEVFREQ_GOV_SIMPLE_ONDEMAND,
440 ondemand_data); 441 ondemand_data);
441 if (IS_ERR(bus->devfreq)) { 442 if (IS_ERR(bus->devfreq)) {
442 dev_err(dev, "failed to add devfreq device\n"); 443 dev_err(dev, "failed to add devfreq device\n");
@@ -488,7 +489,7 @@ passive:
488 passive_data->parent = parent_devfreq; 489 passive_data->parent = parent_devfreq;
489 490
490 /* Add devfreq device for exynos bus with passive governor */ 491 /* Add devfreq device for exynos bus with passive governor */
491 bus->devfreq = devm_devfreq_add_device(dev, profile, "passive", 492 bus->devfreq = devm_devfreq_add_device(dev, profile, DEVFREQ_GOV_PASSIVE,
492 passive_data); 493 passive_data);
493 if (IS_ERR(bus->devfreq)) { 494 if (IS_ERR(bus->devfreq)) {
494 dev_err(dev, 495 dev_err(dev,