|
19 | 19 | #include <linux/of_address.h> |
20 | 20 | #include <linux/of_irq.h> |
21 | 21 | #include <linux/platform_device.h> |
22 | | -/* Goes away with OF conversion */ |
23 | | -#include <linux/platform_data/timer-ixp4xx.h> |
24 | 22 |
|
25 | 23 | /* |
26 | 24 | * Constants to make it easy to access Timer Control/Status registers |
@@ -263,28 +261,6 @@ static struct platform_driver ixp4xx_timer_driver = { |
263 | 261 | }; |
264 | 262 | builtin_platform_driver(ixp4xx_timer_driver); |
265 | 263 |
|
266 | | -/** |
267 | | - * ixp4xx_timer_setup() - Timer setup function to be called from boardfiles |
268 | | - * @timerbase: physical base of timer block |
269 | | - * @timer_irq: Linux IRQ number for the timer |
270 | | - * @timer_freq: Fixed frequency of the timer |
271 | | - */ |
272 | | -void __init ixp4xx_timer_setup(resource_size_t timerbase, |
273 | | - int timer_irq, |
274 | | - unsigned int timer_freq) |
275 | | -{ |
276 | | - void __iomem *base; |
277 | | - |
278 | | - base = ioremap(timerbase, 0x100); |
279 | | - if (!base) { |
280 | | - pr_crit("IXP4xx: can't remap timer\n"); |
281 | | - return; |
282 | | - } |
283 | | - ixp4xx_timer_register(base, timer_irq, timer_freq); |
284 | | -} |
285 | | -EXPORT_SYMBOL_GPL(ixp4xx_timer_setup); |
286 | | - |
287 | | -#ifdef CONFIG_OF |
288 | 264 | static __init int ixp4xx_of_timer_init(struct device_node *np) |
289 | 265 | { |
290 | 266 | void __iomem *base; |
@@ -315,4 +291,3 @@ static __init int ixp4xx_of_timer_init(struct device_node *np) |
315 | 291 | return ret; |
316 | 292 | } |
317 | 293 | TIMER_OF_DECLARE(ixp4xx, "intel,ixp4xx-timer", ixp4xx_of_timer_init); |
318 | | -#endif |
0 commit comments