summaryrefslogtreecommitdiff
path: root/drivers/timer
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-11-13 00:11:17 -0800
committerSimon Glass <sjg@chromium.org>2015-12-01 06:23:51 -0700
commitf838f124522ea4fb5202c1b584b4706aa48ee144 (patch)
treea95f0a80de4de52db5f515b0010650e9d5807249 /drivers/timer
parent9e360a5c9cac27c40547bc2e0b81bbadeffb3ca2 (diff)
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 <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/timer')
-rw-r--r--drivers/timer/sandbox_timer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/timer/sandbox_timer.c b/drivers/timer/sandbox_timer.c
index 38de76365c0..4b20af22288 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;
}