LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [POWERPC] mpc5200: Fix unterminated of_device_id table
@ 2008-04-29 12:43 Grant Likely
  0 siblings, 0 replies; only message in thread
From: Grant Likely @ 2008-04-29 12:43 UTC (permalink / raw)
  To: linuxppc-dev, linux_kernel, paulus

From: Grant Likely <grant.likely@secretlab.ca>

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@secretlab.ca>
---

 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-04-29 12:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-29 12:43 [PATCH] [POWERPC] mpc5200: Fix unterminated of_device_id table Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox