Fwd: [PATCH] [POWERPC] mpc5200: Fix unterminated of_device_id table

From: Grant Likely
Date: Tue May 06 2008 - 10:42:06 EST


Greg,

This patch is already in mainline; but it needs to be backported to
the stable tree. Can you please pick it up?

Thanks,
g.


---------- Forwarded message ----------
From: Grant Likely <grant.likely@xxxxxxxxxxxx>
Date: Tue, Apr 29, 2008 at 6:43 AM
Subject: [PATCH] [POWERPC] mpc5200: Fix unterminated of_device_id table
To: linuxppc-dev@xxxxxxxxxx, linux_kernel@xxxxxxxxxxxxxxx, paulus@xxxxxxxxx


From: Grant Likely <grant.likely@xxxxxxxxxxxx>

If CONFIG_PPC_MPC5121 is not set, then the of_device_id table for the
mpc5200 serial driver will not get terminated with a NULL entry.

Signed-off-by: Grant Likely <grant.likely@xxxxxxxxxxxx>
---

drivers/serial/mpc52xx_uart.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/serial/mpc52xx_uart.c b/drivers/serial/mpc52xx_uart.c
index d93b357..7a3625f 100644
--- a/drivers/serial/mpc52xx_uart.c
+++ b/drivers/serial/mpc52xx_uart.c
@@ -1221,8 +1221,8 @@ static struct of_device_id mpc52xx_uart_of_match[] = {
#endif
#ifdef CONFIG_PPC_MPC512x
{ .compatible = "fsl,mpc5121-psc-uart", .data = &mpc512x_psc_ops, },
- {},
#endif
+ {},
};

static int __devinit




--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/