#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/err.h>
+#include <linux/clk.h>
#include <asm/system.h>
#include <asm/hardware.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
-#include <asm/hardware/clock.h>
struct sys_timer omap_timer;
static struct clk * gpt1_fck;
static __init void omap_init_32k_timer(void)
-{
+{
#ifdef CONFIG_NO_IDLE_HZ
omap_timer.dyn_tick = &omap_dyn_tick_timer;
#endif
if (IS_ERR(gpt1_ick))
printk(KERN_ERR "Could not get gpt1_ick\n");
else
- clk_use(gpt1_ick);
+ clk_enable(gpt1_ick);
gpt1_fck = clk_get(NULL, "gpt1_fck");
if (IS_ERR(gpt1_fck))
printk(KERN_ERR "Could not get gpt1_fck\n");
else
- clk_use(gpt1_fck);
+ clk_enable(gpt1_fck);
mdelay(100); /* Wait for clocks to stabilize */