aboutsummaryrefslogtreecommitdiff
path: root/hw/ppc/pnv_occ.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-06-01 11:34:52 +0200
committerThomas Huth <thuth@redhat.com>2023-06-05 20:48:34 +0200
commit7d5b0d68647c8f966c6e4e68ed669127186b4701 (patch)
treea2018e6d48f88a710cc1b7935b307cdd5ae77651 /hw/ppc/pnv_occ.c
parente3e2c0c82bd0b9678f7950f37f9a089301d47813 (diff)
bulk: Remove pointless QOM casts
Mechanical change running Coccinelle spatch with content generated from the qom-cast-macro-clean-cocci-gen.py added in the previous commit. Suggested-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-Id: <20230601093452.38972-3-philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'hw/ppc/pnv_occ.c')
-rw-r--r--hw/ppc/pnv_occ.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/pnv_occ.c b/hw/ppc/pnv_occ.c
index 9fa6d91d31..48123ceae1 100644
--- a/hw/ppc/pnv_occ.c
+++ b/hw/ppc/pnv_occ.c
@@ -278,7 +278,7 @@ static void pnv_occ_realize(DeviceState *dev, Error **errp)
occ, "occ-common-area",
PNV_OCC_SENSOR_DATA_BLOCK_SIZE);
- qdev_init_gpio_out(DEVICE(dev), &occ->psi_irq, 1);
+ qdev_init_gpio_out(dev, &occ->psi_irq, 1);
}
static void pnv_occ_class_init(ObjectClass *klass, void *data)