summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-23 18:12:28 +0000
committerwdenk <wdenk>2003-06-23 18:12:28 +0000
commitcceb871fff195f2981b4cbedbcfa8e3c7bbe5c7b (patch)
tree11e6bc63023f544dbcb957b89f4252597f528b74 /common
parent3595ac4979e648e102c7a500e3c63193a27953bc (diff)
downloadu-boot-imx-cceb871fff195f2981b4cbedbcfa8e3c7bbe5c7b.zip
u-boot-imx-cceb871fff195f2981b4cbedbcfa8e3c7bbe5c7b.tar.gz
u-boot-imx-cceb871fff195f2981b4cbedbcfa8e3c7bbe5c7b.tar.bz2
* 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
Diffstat (limited to 'common')
-rw-r--r--common/cmd_ide.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/common/cmd_ide.c b/common/cmd_ide.c
index 9441db2..f1b24be 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)