qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] PPC: mpc8544ds: Fix typo in init of second serial d


From: Ben Collins
Subject: [Qemu-devel] [PATCH] PPC: mpc8544ds: Fix typo in init of second serial device
Date: Tue, 5 Jun 2012 14:09:47 -0400

The reference to serial_hds[0] should be serial_hds[1] when initializing
the second serial line.

Signed-off-by: Ben Collins <address@hidden>
Cc: Alexander Graf <address@hidden>
---
 hw/ppce500_mpc8544ds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/ppce500_mpc8544ds.c b/hw/ppce500_mpc8544ds.c
index f1dfbe1..3abc918 100644
--- a/hw/ppce500_mpc8544ds.c
+++ b/hw/ppce500_mpc8544ds.c
@@ -314,7 +314,7 @@ static void mpc8544ds_init(ram_addr_t ram_size,
     if (serial_hds[1]) {
         serial_mm_init(address_space_mem, MPC8544_SERIAL1_REGS_BASE,
                        0, mpic[12+26], 399193,
-                       serial_hds[0], DEVICE_BIG_ENDIAN);
+                       serial_hds[1], DEVICE_BIG_ENDIAN);
     }
 
     /* General Utility device */
-- 
1.7.9.5

--
Bluecherry: http://www.bluecherrydvr.com/
SwissDisk : http://www.swissdisk.com/
Ubuntu    : http://www.ubuntu.com/
My Blog   : http://ben-collins.blogspot.com/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]