Skip to contentSkip to conversation

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

PATCH New Ben Collins 1 participant 1 message Jun 5, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: mpc8544ds: Fix typo in init of second serial device

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

Cc Alexander Graf <[email protected]>
---
 hw/ppce500_mpc8544ds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppce500_mpc8544ds.c +1 -1
index f1dfbe1..3abc918 100644
@@ -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 */
Signature · 7 lines
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/