diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2016-07-08 17:15:00 +0300 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2016-07-14 00:59:53 +0300 |
commit | 4d252fd5719bd047a178668aa09ee8bc9de85c7c (patch) | |
tree | cc6cd7c7c3da7baf952a109725e3982327570dd0 /drivers/clk/samsung/clk-exynos-audss.c | |
parent | 4c7c28ffe9658ebfb43e638d9d267e1be2ffb71c (diff) | |
download | linux-4d252fd5719bd047a178668aa09ee8bc9de85c7c.tar.xz |
clk: samsung: Allow modular build of the Audio Subsystem CLKCON driver
Any clock dependencies can be properly handled with deferred probing
so we can remove core_initcall and switch to a proper loadable platform
driver module.
This change has been tested on Exynos4412 Odroid U3 based board.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1467987300-31450-1-git-send-email-s.nawrocki@samsung.com
Diffstat (limited to 'drivers/clk/samsung/clk-exynos-audss.c')
-rw-r--r-- | drivers/clk/samsung/clk-exynos-audss.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/clk/samsung/clk-exynos-audss.c b/drivers/clk/samsung/clk-exynos-audss.c index 4e9584d79089..bdf8b971f332 100644 --- a/drivers/clk/samsung/clk-exynos-audss.c +++ b/drivers/clk/samsung/clk-exynos-audss.c @@ -273,17 +273,7 @@ static struct platform_driver exynos_audss_clk_driver = { .remove = exynos_audss_clk_remove, }; -static int __init exynos_audss_clk_init(void) -{ - return platform_driver_register(&exynos_audss_clk_driver); -} -core_initcall(exynos_audss_clk_init); - -static void __exit exynos_audss_clk_exit(void) -{ - platform_driver_unregister(&exynos_audss_clk_driver); -} -module_exit(exynos_audss_clk_exit); +module_platform_driver(exynos_audss_clk_driver); MODULE_AUTHOR("Padmavathi Venna <padma.v@samsung.com>"); MODULE_DESCRIPTION("Exynos Audio Subsystem Clock Controller"); |