From f838f124522ea4fb5202c1b584b4706aa48ee144 Mon Sep 17 00:00:00 2001 From: Bin Meng Date: Fri, 13 Nov 2015 00:11:17 -0800 Subject: timer: sandbox: Use device tree to pass the clock frequency We should use device tree to pass the clock frequency of the timer instead of hardcoded in the driver codes. Signed-off-by: Bin Meng Acked-by: Simon Glass --- drivers/timer/sandbox_timer.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'drivers/timer/sandbox_timer.c') diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c index 38de763..4b20af2 100644 --- a/drivers/timer/sandbox_timer.c +++ b/drivers/timer/sandbox_timer.c @@ -27,10 +27,6 @@ static int sandbox_timer_get_count(struct udevice *dev, unsigned long *count) static int sandbox_timer_probe(struct udevice *dev) { - struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); - - uc_priv->clock_rate = 1000000; - return 0; } -- cgit v1.1