From cceb871fff195f2981b4cbedbcfa8e3c7bbe5c7b Mon Sep 17 00:00:00 2001 From: wdenk Date: Mon, 23 Jun 2003 18:12:28 +0000 Subject: * Patch by Yuli Barcohen, 23 Jun 2003: Update for MPC8260ADS board * Patch by Murray Jensen, 23 Jun 2003: - cleanup of GCC 3.x compiler warnings --- common/cmd_ide.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'common/cmd_ide.c') diff --git a/common/cmd_ide.c b/common/cmd_ide.c index 9441db2dd6..f1b24be684 100644 --- a/common/cmd_ide.c +++ b/common/cmd_ide.c @@ -792,15 +792,7 @@ ide_inb(int dev, int port) #endif /* __PPC__ */ #ifdef __PPC__ -__inline__ unsigned ld_le16(const volatile unsigned short *addr) -{ - unsigned val; - - __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r"(val) : "r"(addr), "m"(*addr)); - return val; -} - -#ifdef CONFIG_AMIGAONEG3SE +# ifdef CONFIG_AMIGAONEG3SE static void output_data_short(int dev, ulong *sect_buf, int words) { @@ -818,7 +810,7 @@ output_data_short(int dev, ulong *sect_buf, int words) if (words&1) *pbuf = 0; } -#endif +# endif /* CONFIG_AMIGAONEG3SE */ static void input_swap_data(int dev, ulong *sect_buf, int words) -- cgit v1.2.3