|
|
5544c1 |
From 030d44c473036d44abc76562860a89b21220ca2f Mon Sep 17 00:00:00 2001
|
|
|
5544c1 |
From: "Peter A. G. Crosthwaite" <peter.crosthwaite@petalogix.com>
|
|
|
5544c1 |
Date: Thu, 28 Jun 2012 12:52:23 +1000
|
|
|
5544c1 |
Subject: [PATCH] xilinx_timer: Removed comma in device name
|
|
|
5544c1 |
|
|
|
5544c1 |
Fixes an error in a61e4b07a30c062260d2d01771773f14820d1eb7
|
|
|
5544c1 |
|
|
|
5544c1 |
Signed-off-by: Peter A. G. Crosthwaite <peter.crosthwaite@petalogix.com>
|
|
|
5544c1 |
(cherry picked from commit c0a1dcb9f0baf9269f8baeb02cbcca8dad75454c)
|
|
|
5544c1 |
|
|
|
5544c1 |
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
|
|
|
5544c1 |
---
|
|
|
5544c1 |
hw/xilinx.h | 2 +-
|
|
|
5544c1 |
hw/xilinx_timer.c | 4 ++--
|
|
|
5544c1 |
2 files changed, 3 insertions(+), 3 deletions(-)
|
|
|
5544c1 |
|
|
|
5544c1 |
diff --git a/hw/xilinx.h b/hw/xilinx.h
|
|
|
5544c1 |
index 556c5aa..df06a00 100644
|
|
|
5544c1 |
--- a/hw/xilinx.h
|
|
|
5544c1 |
+++ b/hw/xilinx.h
|
|
|
5544c1 |
@@ -21,7 +21,7 @@ xilinx_timer_create(target_phys_addr_t base, qemu_irq irq, int oto, int freq)
|
|
|
5544c1 |
{
|
|
|
5544c1 |
DeviceState *dev;
|
|
|
5544c1 |
|
|
|
5544c1 |
- dev = qdev_create(NULL, "xlnx,xps-timer");
|
|
|
5544c1 |
+ dev = qdev_create(NULL, "xlnx.xps-timer");
|
|
|
5544c1 |
qdev_prop_set_uint32(dev, "one-timer-only", oto);
|
|
|
5544c1 |
qdev_prop_set_uint32(dev, "frequency", freq);
|
|
|
5544c1 |
qdev_init_nofail(dev);
|
|
|
5544c1 |
diff --git a/hw/xilinx_timer.c b/hw/xilinx_timer.c
|
|
|
5544c1 |
index b562bd0..053ba02 100644
|
|
|
5544c1 |
--- a/hw/xilinx_timer.c
|
|
|
5544c1 |
+++ b/hw/xilinx_timer.c
|
|
|
5544c1 |
@@ -217,7 +217,7 @@ static int xilinx_timer_init(SysBusDevice *dev)
|
|
|
5544c1 |
ptimer_set_freq(xt->ptimer, t->freq_hz);
|
|
|
5544c1 |
}
|
|
|
5544c1 |
|
|
|
5544c1 |
- memory_region_init_io(&t->mmio, &timer_ops, t, "xlnx,xps-timer",
|
|
|
5544c1 |
+ memory_region_init_io(&t->mmio, &timer_ops, t, "xlnx.xps-timer",
|
|
|
5544c1 |
R_MAX * 4 * num_timers(t));
|
|
|
5544c1 |
sysbus_init_mmio(dev, &t->mmio);
|
|
|
5544c1 |
return 0;
|
|
|
5544c1 |
@@ -239,7 +239,7 @@ static void xilinx_timer_class_init(ObjectClass *klass, void *data)
|
|
|
5544c1 |
}
|
|
|
5544c1 |
|
|
|
5544c1 |
static TypeInfo xilinx_timer_info = {
|
|
|
5544c1 |
- .name = "xlnx,xps-timer",
|
|
|
5544c1 |
+ .name = "xlnx.xps-timer",
|
|
|
5544c1 |
.parent = TYPE_SYS_BUS_DEVICE,
|
|
|
5544c1 |
.instance_size = sizeof(struct timerblock),
|
|
|
5544c1 |
.class_init = xilinx_timer_class_init,
|
|
|
5544c1 |
--
|
|
|
5544c1 |
1.7.12.1
|
|
|
5544c1 |
|