Skip to content

Commit 8cfec4f

Browse files
committed
[DM/FIXUP] Fixup bitmap type
Signed-off-by: GuEe-GUI <[email protected]>
1 parent f0ffe72 commit 8cfec4f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/drivers/ata/ahci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -510,13 +510,13 @@ static void ahci_isr(int irqno, void *param)
510510
{
511511
int id;
512512
rt_uint32_t isr;
513-
bitmap_t int_map;
513+
rt_bitmap_t int_map;
514514
struct rt_ahci_port *port;
515515
struct rt_ahci_host *host = param;
516516

517517
int_map = HWREG32(host->regs + RT_AHCI_HBA_INTS);
518518

519-
bitmap_for_each_set_bit(&int_map, id, host->ports_nr)
519+
rt_bitmap_for_each_set_bit(&int_map, id, host->ports_nr)
520520
{
521521
port = &host->ports[id];
522522

@@ -535,7 +535,7 @@ static void ahci_isr(int irqno, void *param)
535535
HWREG32(port->regs + RT_AHCI_PORT_INTS) = isr;
536536
}
537537

538-
HWREG32(host->regs + RT_AHCI_HBA_INTS) = isr;
538+
HWREG32(host->regs + RT_AHCI_HBA_INTS) = int_map;
539539
}
540540

541541
rt_err_t rt_ahci_host_register(struct rt_ahci_host *host)

0 commit comments

Comments
 (0)