aboutsummaryrefslogtreecommitdiff
path: root/hw/arm/omap1.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-10-18 15:26:19 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-07 17:24:29 +0400
commitba2aba8370e33a44ff5619844b90bb7119c5cebf (patch)
tree2266d09a9c65b5eec03fe012e966cc2baf0b0018 /hw/arm/omap1.c
parent0fd20c532faa6d5ebed8a43763f96a4829b33be2 (diff)
downloadqemu-ba2aba8370e33a44ff5619844b90bb7119c5cebf.zip
qemu-ba2aba8370e33a44ff5619844b90bb7119c5cebf.tar.gz
qemu-ba2aba8370e33a44ff5619844b90bb7119c5cebf.tar.bz2
omap-gpio: remove PROP_PTR
Since clocks are not QOM objects, replace PROP_PTR of clocks with setters methods. Move/adapt the existing TODO comment about a clock framework. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Diffstat (limited to 'hw/arm/omap1.c')
-rw-r--r--hw/arm/omap1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/omap1.c b/hw/arm/omap1.c
index 807e5f7..761cc17 100644
--- a/hw/arm/omap1.c
+++ b/hw/arm/omap1.c
@@ -4012,7 +4012,7 @@ struct omap_mpu_state_s *omap310_mpu_init(MemoryRegion *dram,
s->gpio = qdev_create(NULL, "omap-gpio");
qdev_prop_set_int32(s->gpio, "mpu_model", s->mpu_model);
- qdev_prop_set_ptr(s->gpio, "clk", omap_findclk(s, "arm_gpio_ck"));
+ omap_gpio_set_clk(OMAP1_GPIO(s->gpio), omap_findclk(s, "arm_gpio_ck"));
qdev_init_nofail(s->gpio);
sysbus_connect_irq(SYS_BUS_DEVICE(s->gpio), 0,
qdev_get_gpio_in(s->ih[0], OMAP_INT_GPIO_BANK1));