Skip to content

Commit

Permalink
ide: <asm-sparc/ide_64.h>: use %r0 for outw_be()
Browse files Browse the repository at this point in the history
Use %r0 for outw_be() to make it match __raw_writew().

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Bartlomiej Zolnierkiewicz authored and David S. Miller committed Jul 21, 2008
1 parent 74988bd commit 28c10af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-sparc/ide_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ static inline void __ide_insw(void __iomem *port, void *dst, u32 count)

static inline void outw_be(unsigned short w, void __iomem *addr)
{
__asm__ __volatile__("stha %0, [%1] %2"
__asm__ __volatile__("stha %r0, [%1] %2"
: /* no outputs */
: "r" (w), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E));
: "Jr" (w), "r" (addr), "i" (ASI_PHYS_BYPASS_EC_E));
}

static inline void __ide_outsw(void __iomem *port, void *src, u32 count)
Expand Down

0 comments on commit 28c10af

Please sign in to comment.