diff options
Diffstat (limited to 'drivers/clk/x86/clk-lpt.c')
-rw-r--r-- | drivers/clk/x86/clk-lpt.c | 40 |
1 files changed, 1 insertions, 39 deletions
diff --git a/drivers/clk/x86/clk-lpt.c b/drivers/clk/x86/clk-lpt.c index 81298aeef7e3..5cf4f4686406 100644 --- a/drivers/clk/x86/clk-lpt.c +++ b/drivers/clk/x86/clk-lpt.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/acpi.h> | ||
14 | #include <linux/clk.h> | 13 | #include <linux/clk.h> |
15 | #include <linux/clkdev.h> | 14 | #include <linux/clkdev.h> |
16 | #include <linux/clk-provider.h> | 15 | #include <linux/clk-provider.h> |
@@ -18,8 +17,6 @@ | |||
18 | #include <linux/module.h> | 17 | #include <linux/module.h> |
19 | #include <linux/platform_device.h> | 18 | #include <linux/platform_device.h> |
20 | 19 | ||
21 | #include "clk-lpss.h" | ||
22 | |||
23 | #define PRV_CLOCK_PARAMS 0x800 | 20 | #define PRV_CLOCK_PARAMS 0x800 |
24 | 21 | ||
25 | static int lpt_clk_probe(struct platform_device *pdev) | 22 | static int lpt_clk_probe(struct platform_device *pdev) |
@@ -34,40 +31,6 @@ static int lpt_clk_probe(struct platform_device *pdev) | |||
34 | 31 | ||
35 | /* Shared DMA clock */ | 32 | /* Shared DMA clock */ |
36 | clk_register_clkdev(clk, "hclk", "INTL9C60.0.auto"); | 33 | clk_register_clkdev(clk, "hclk", "INTL9C60.0.auto"); |
37 | |||
38 | /* SPI clocks */ | ||
39 | clk = clk_register_lpss_gate("spi0_clk", "lpss_clk", "INT33C0", NULL, | ||
40 | PRV_CLOCK_PARAMS); | ||
41 | if (!IS_ERR(clk)) | ||
42 | clk_register_clkdev(clk, NULL, "INT33C0:00"); | ||
43 | |||
44 | clk = clk_register_lpss_gate("spi1_clk", "lpss_clk", "INT33C1", NULL, | ||
45 | PRV_CLOCK_PARAMS); | ||
46 | if (!IS_ERR(clk)) | ||
47 | clk_register_clkdev(clk, NULL, "INT33C1:00"); | ||
48 | |||
49 | /* I2C clocks */ | ||
50 | clk = clk_register_lpss_gate("i2c0_clk", "lpss_clk", "INT33C2", NULL, | ||
51 | PRV_CLOCK_PARAMS); | ||
52 | if (!IS_ERR(clk)) | ||
53 | clk_register_clkdev(clk, NULL, "INT33C2:00"); | ||
54 | |||
55 | clk = clk_register_lpss_gate("i2c1_clk", "lpss_clk", "INT33C3", NULL, | ||
56 | PRV_CLOCK_PARAMS); | ||
57 | if (!IS_ERR(clk)) | ||
58 | clk_register_clkdev(clk, NULL, "INT33C3:00"); | ||
59 | |||
60 | /* UART clocks */ | ||
61 | clk = clk_register_lpss_gate("uart0_clk", "lpss_clk", "INT33C4", NULL, | ||
62 | PRV_CLOCK_PARAMS); | ||
63 | if (!IS_ERR(clk)) | ||
64 | clk_register_clkdev(clk, NULL, "INT33C4:00"); | ||
65 | |||
66 | clk = clk_register_lpss_gate("uart1_clk", "lpss_clk", "INT33C5", NULL, | ||
67 | PRV_CLOCK_PARAMS); | ||
68 | if (!IS_ERR(clk)) | ||
69 | clk_register_clkdev(clk, NULL, "INT33C5:00"); | ||
70 | |||
71 | return 0; | 34 | return 0; |
72 | } | 35 | } |
73 | 36 | ||
@@ -79,8 +42,7 @@ static struct platform_driver lpt_clk_driver = { | |||
79 | .probe = lpt_clk_probe, | 42 | .probe = lpt_clk_probe, |
80 | }; | 43 | }; |
81 | 44 | ||
82 | static int __init lpt_clk_init(void) | 45 | int __init lpt_clk_init(void) |
83 | { | 46 | { |
84 | return platform_driver_register(&lpt_clk_driver); | 47 | return platform_driver_register(&lpt_clk_driver); |
85 | } | 48 | } |
86 | arch_initcall(lpt_clk_init); | ||