Skip to contentSkip to conversation

[Fwd: fix for drivers/serial/mpc52xx_uart.c]

Fwd: fix for drivers/serial/mpc52xx_uart.c Sylvain Munaut 2 participants 2 messages May 6, 2008

lore
Share & tools
lore
#0 lore raw

Patch, obviously correct, sent to me personally instead of the list.

Sylvain

Here is a fix for the unterminated mpc52xx_uart_of_match array when CONFIG_PPC_MPC512x is not defined. Should be quite self explonary, but if not feel free to bug me about it.

Patch applies against 2.6.25 and 2.6.25.1 at least.

Patch can be credited to Harry Sintonen <[email protected]>.

Regards,

Signature · 3 lines
l=2001;main(i){float o,O,_,I,D;for(;O=I=l/571.-1.75,l;)for(putchar(--l%80?
i:10),o=D=l%80*.05-2,i=31;_=O*O,O=2*o*O+I,o=o*o-_+D,o+_+_<4+D&i++<87;);puts
("  Harry 'Piru' Sintonen <[email protected]> http://www.iki.fi/sintonen");}
serial/mpc52xx_uart.c renamed from serial/mpc52xx_uart.c-orig +1 -1
@@ -1220,10 +1220,10 @@
 	{ .compatible = "mpc5200-serial", .data = &mpc52xx_psc_ops, },
 #endif
 #ifdef CONFIG_PPC_MPC512x
 	{ .compatible = "fsl,mpc5121-psc-uart", .data = &mpc512x_psc_ops, },
-	{},
 #endif
+	{},
 };
 
 static int __devinit
 mpc52xx_uart_of_probe(struct of_device *op, const struct of_device_id *match)
#1 lore raw
Quoted 7 lines · Sylvain Munaut

Patch, obviously correct, sent to me personally instead of the list.

Sylvain

Here is a fix for the unterminated mpc52xx_uart_of_match array when CONFIG_PPC_MPC512x is not defined. Should be quite self explonary, but if not feel free to bug me about it.

Patch applies against 2.6.25 and 2.6.25.1 at least.

Already fixed in mainline; it needs to be back ported to 2.6.25. I'll poke GregKH

Cheers,
g.

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.