hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/drivers/clk/nxp/clk-lpc18xx-ccu.c
....@@ -10,6 +10,7 @@
1010
1111 #include <linux/clk.h>
1212 #include <linux/clk-provider.h>
13
+#include <linux/io.h>
1314 #include <linux/kernel.h>
1415 #include <linux/of.h>
1516 #include <linux/of_address.h>
....@@ -142,7 +143,7 @@
142143 * Divider field is write only, so divider stat field must
143144 * be read so divider field can be set accordingly.
144145 */
145
- val = clk_readl(gate->reg);
146
+ val = readl(gate->reg);
146147 if (val & LPC18XX_CCU_DIVSTAT)
147148 val |= LPC18XX_CCU_DIV;
148149
....@@ -155,12 +156,12 @@
155156 * and the next write should clear the RUN bit.
156157 */
157158 val |= LPC18XX_CCU_AUTO;
158
- clk_writel(val, gate->reg);
159
+ writel(val, gate->reg);
159160
160161 val &= ~LPC18XX_CCU_RUN;
161162 }
162163
163
- clk_writel(val, gate->reg);
164
+ writel(val, gate->reg);
164165
165166 return 0;
166167 }