diff options
Diffstat (limited to 'drivers/clk/sunxi/clk-sun6i-ar100.c')
-rw-r--r-- | drivers/clk/sunxi/clk-sun6i-ar100.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/clk/sunxi/clk-sun6i-ar100.c b/drivers/clk/sunxi/clk-sun6i-ar100.c index 84a187e55360..64ca3e9e38e6 100644 --- a/drivers/clk/sunxi/clk-sun6i-ar100.c +++ b/drivers/clk/sunxi/clk-sun6i-ar100.c | |||
@@ -10,7 +10,7 @@ | |||
10 | 10 | ||
11 | #include <linux/bitops.h> | 11 | #include <linux/bitops.h> |
12 | #include <linux/clk-provider.h> | 12 | #include <linux/clk-provider.h> |
13 | #include <linux/module.h> | 13 | #include <linux/init.h> |
14 | #include <linux/of.h> | 14 | #include <linux/of.h> |
15 | #include <linux/platform_device.h> | 15 | #include <linux/platform_device.h> |
16 | #include <linux/spinlock.h> | 16 | #include <linux/spinlock.h> |
@@ -91,32 +91,17 @@ static int sun6i_a31_ar100_clk_probe(struct platform_device *pdev) | |||
91 | return 0; | 91 | return 0; |
92 | } | 92 | } |
93 | 93 | ||
94 | static int sun6i_a31_ar100_clk_remove(struct platform_device *pdev) | ||
95 | { | ||
96 | struct device_node *np = pdev->dev.of_node; | ||
97 | struct clk *clk = platform_get_drvdata(pdev); | ||
98 | |||
99 | sunxi_factors_unregister(np, clk); | ||
100 | |||
101 | return 0; | ||
102 | } | ||
103 | |||
104 | static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = { | 94 | static const struct of_device_id sun6i_a31_ar100_clk_dt_ids[] = { |
105 | { .compatible = "allwinner,sun6i-a31-ar100-clk" }, | 95 | { .compatible = "allwinner,sun6i-a31-ar100-clk" }, |
106 | { /* sentinel */ } | 96 | { /* sentinel */ } |
107 | }; | 97 | }; |
108 | MODULE_DEVICE_TABLE(of, sun6i_a31_ar100_clk_dt_ids); | ||
109 | 98 | ||
110 | static struct platform_driver sun6i_a31_ar100_clk_driver = { | 99 | static struct platform_driver sun6i_a31_ar100_clk_driver = { |
111 | .driver = { | 100 | .driver = { |
112 | .name = "sun6i-a31-ar100-clk", | 101 | .name = "sun6i-a31-ar100-clk", |
113 | .of_match_table = sun6i_a31_ar100_clk_dt_ids, | 102 | .of_match_table = sun6i_a31_ar100_clk_dt_ids, |
103 | .suppress_bind_attrs = true, | ||
114 | }, | 104 | }, |
115 | .probe = sun6i_a31_ar100_clk_probe, | 105 | .probe = sun6i_a31_ar100_clk_probe, |
116 | .remove = sun6i_a31_ar100_clk_remove, | ||
117 | }; | 106 | }; |
118 | module_platform_driver(sun6i_a31_ar100_clk_driver); | 107 | builtin_platform_driver(sun6i_a31_ar100_clk_driver); |
119 | |||
120 | MODULE_AUTHOR("Boris BREZILLON <boris.brezillon@free-electrons.com>"); | ||
121 | MODULE_DESCRIPTION("Allwinner A31 AR100 clock Driver"); | ||
122 | MODULE_LICENSE("GPL v2"); | ||