diff options
Diffstat (limited to 'drivers/clk/samsung/clk-s5pv210-audss.c')
-rw-r--r-- | drivers/clk/samsung/clk-s5pv210-audss.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/drivers/clk/samsung/clk-s5pv210-audss.c b/drivers/clk/samsung/clk-s5pv210-audss.c index eefb84b22566..c66ed2d1450e 100644 --- a/drivers/clk/samsung/clk-s5pv210-audss.c +++ b/drivers/clk/samsung/clk-s5pv210-audss.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/clk-provider.h> | 18 | #include <linux/clk-provider.h> |
19 | #include <linux/of_address.h> | 19 | #include <linux/of_address.h> |
20 | #include <linux/syscore_ops.h> | 20 | #include <linux/syscore_ops.h> |
21 | #include <linux/module.h> | 21 | #include <linux/init.h> |
22 | #include <linux/platform_device.h> | 22 | #include <linux/platform_device.h> |
23 | 23 | ||
24 | #include <dt-bindings/clock/s5pv210-audss.h> | 24 | #include <dt-bindings/clock/s5pv210-audss.h> |
@@ -194,20 +194,6 @@ unregister: | |||
194 | return ret; | 194 | return ret; |
195 | } | 195 | } |
196 | 196 | ||
197 | static int s5pv210_audss_clk_remove(struct platform_device *pdev) | ||
198 | { | ||
199 | int i; | ||
200 | |||
201 | of_clk_del_provider(pdev->dev.of_node); | ||
202 | |||
203 | for (i = 0; i < clk_data.clk_num; i++) { | ||
204 | if (!IS_ERR(clk_table[i])) | ||
205 | clk_unregister(clk_table[i]); | ||
206 | } | ||
207 | |||
208 | return 0; | ||
209 | } | ||
210 | |||
211 | static const struct of_device_id s5pv210_audss_clk_of_match[] = { | 197 | static const struct of_device_id s5pv210_audss_clk_of_match[] = { |
212 | { .compatible = "samsung,s5pv210-audss-clock", }, | 198 | { .compatible = "samsung,s5pv210-audss-clock", }, |
213 | {}, | 199 | {}, |
@@ -216,10 +202,10 @@ static const struct of_device_id s5pv210_audss_clk_of_match[] = { | |||
216 | static struct platform_driver s5pv210_audss_clk_driver = { | 202 | static struct platform_driver s5pv210_audss_clk_driver = { |
217 | .driver = { | 203 | .driver = { |
218 | .name = "s5pv210-audss-clk", | 204 | .name = "s5pv210-audss-clk", |
205 | .suppress_bind_attrs = true, | ||
219 | .of_match_table = s5pv210_audss_clk_of_match, | 206 | .of_match_table = s5pv210_audss_clk_of_match, |
220 | }, | 207 | }, |
221 | .probe = s5pv210_audss_clk_probe, | 208 | .probe = s5pv210_audss_clk_probe, |
222 | .remove = s5pv210_audss_clk_remove, | ||
223 | }; | 209 | }; |
224 | 210 | ||
225 | static int __init s5pv210_audss_clk_init(void) | 211 | static int __init s5pv210_audss_clk_init(void) |
@@ -227,14 +213,3 @@ static int __init s5pv210_audss_clk_init(void) | |||
227 | return platform_driver_register(&s5pv210_audss_clk_driver); | 213 | return platform_driver_register(&s5pv210_audss_clk_driver); |
228 | } | 214 | } |
229 | core_initcall(s5pv210_audss_clk_init); | 215 | core_initcall(s5pv210_audss_clk_init); |
230 | |||
231 | static void __exit s5pv210_audss_clk_exit(void) | ||
232 | { | ||
233 | platform_driver_unregister(&s5pv210_audss_clk_driver); | ||
234 | } | ||
235 | module_exit(s5pv210_audss_clk_exit); | ||
236 | |||
237 | MODULE_AUTHOR("Tomasz Figa <t.figa@samsung.com>"); | ||
238 | MODULE_DESCRIPTION("S5PV210 Audio Subsystem Clock Controller"); | ||
239 | MODULE_LICENSE("GPL v2"); | ||
240 | MODULE_ALIAS("platform:s5pv210-audss-clk"); | ||