|
@@ -156,6 +156,14 @@ static int exynos_rng_probe(struct platform_device *pdev)
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static int exynos_rng_remove(struct platform_device *pdev)
|
|
|
|
+{
|
|
|
|
+ pm_runtime_dont_use_autosuspend(&pdev->dev);
|
|
|
|
+ pm_runtime_disable(&pdev->dev);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
static int __maybe_unused exynos_rng_runtime_suspend(struct device *dev)
|
|
static int __maybe_unused exynos_rng_runtime_suspend(struct device *dev)
|
|
{
|
|
{
|
|
struct platform_device *pdev = to_platform_device(dev);
|
|
struct platform_device *pdev = to_platform_device(dev);
|
|
@@ -213,6 +221,7 @@ static struct platform_driver exynos_rng_driver = {
|
|
.of_match_table = exynos_rng_dt_match,
|
|
.of_match_table = exynos_rng_dt_match,
|
|
},
|
|
},
|
|
.probe = exynos_rng_probe,
|
|
.probe = exynos_rng_probe,
|
|
|
|
+ .remove = exynos_rng_remove,
|
|
};
|
|
};
|
|
|
|
|
|
module_platform_driver(exynos_rng_driver);
|
|
module_platform_driver(exynos_rng_driver);
|