diff mbox

PPC: mpc8544ds: Fix typo in init of second serial device

Message ID DB486F13-BD2D-4CE5-B3CB-1D778BC3A5AB@ubuntu.com
State New
Headers show

Commit Message

Benjamin Collins June 5, 2012, 6:09 p.m. UTC
The reference to serial_hds[0] should be serial_hds[1] when initializing
the second serial line.

Signed-off-by: Ben Collins <bcollins@ubuntu.com>
Cc: Alexander Graf <agraf@suse.de>
---
 hw/ppce500_mpc8544ds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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 */