diff --git a/sys/dev/ata/chipsets/ata-promise.c b/sys/dev/ata/chipsets/ata-promise.c index a4e9414ca7e4..3054552c305b 100644 --- a/sys/dev/ata/chipsets/ata-promise.c +++ b/sys/dev/ata/chipsets/ata-promise.c @@ -628,7 +628,7 @@ ata_promise_mio_status(device_t dev) } /* read and acknowledge interrupt */ - vector = (uint32_t)ctlr->chipset_data; + vector = (uint32_t)(uintptr_t)ctlr->chipset_data; /* read and clear interface status */ status = ATA_INL(ctlr->r_res2, stat_reg);