Skip to content

Commit

Permalink
scc_pata: Use inline function for eieio
Browse files Browse the repository at this point in the history
Move to using inline function variant of eieio instead of inline assmebly.

Signed-off-by: Kumar Gala <[email protected]>
Cc: [email protected]
Acked-by: Sergei Shtylyov <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
  • Loading branch information
kumargala authored and bzolnier committed Jul 19, 2007
1 parent 721e262 commit f644d47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/pci/scc_pata.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ scc_ide_outbsync(ide_drive_t * drive, u8 addr, unsigned long port)
ide_hwif_t *hwif = HWIF(drive);

out_be32((void*)port, addr);
__asm__ __volatile__("eieio":::"memory");
eieio();
in_be32((void*)(hwif->dma_base + 0x01c));
__asm__ __volatile__("eieio":::"memory");
eieio();
}

static void
Expand Down

0 comments on commit f644d47

Please sign in to comment.