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

login
register
mail settings
Submitter Benjamin Collins
Date June 5, 2012, 6:09 p.m.
Message ID <DB486F13-BD2D-4CE5-B3CB-1D778BC3A5AB@ubuntu.com>
Download mbox | patch
Permalink /patch/163125/
State New
Headers show

Comments

Benjamin Collins - June 5, 2012, 6:09 p.m.
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(-)

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