diff options
Diffstat (limited to 'drivers/devfreq/exynos-bus.c')
-rw-r--r-- | drivers/devfreq/exynos-bus.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/devfreq/exynos-bus.c b/drivers/devfreq/exynos-bus.c index c25658b26598..486cc5b422f1 100644 --- a/drivers/devfreq/exynos-bus.c +++ b/drivers/devfreq/exynos-bus.c | |||
@@ -514,6 +514,13 @@ err: | |||
514 | return ret; | 514 | return ret; |
515 | } | 515 | } |
516 | 516 | ||
517 | static void exynos_bus_shutdown(struct platform_device *pdev) | ||
518 | { | ||
519 | struct exynos_bus *bus = dev_get_drvdata(&pdev->dev); | ||
520 | |||
521 | devfreq_suspend_device(bus->devfreq); | ||
522 | } | ||
523 | |||
517 | #ifdef CONFIG_PM_SLEEP | 524 | #ifdef CONFIG_PM_SLEEP |
518 | static int exynos_bus_resume(struct device *dev) | 525 | static int exynos_bus_resume(struct device *dev) |
519 | { | 526 | { |
@@ -556,6 +563,7 @@ MODULE_DEVICE_TABLE(of, exynos_bus_of_match); | |||
556 | 563 | ||
557 | static struct platform_driver exynos_bus_platdrv = { | 564 | static struct platform_driver exynos_bus_platdrv = { |
558 | .probe = exynos_bus_probe, | 565 | .probe = exynos_bus_probe, |
566 | .shutdown = exynos_bus_shutdown, | ||
559 | .driver = { | 567 | .driver = { |
560 | .name = "exynos-bus", | 568 | .name = "exynos-bus", |
561 | .pm = &exynos_bus_pm, | 569 | .pm = &exynos_bus_pm, |