[POWERPC] mpc5200: Fix unterminated of_device_id table
authorGrant Likely <grant.likely@secretlab.ca>
Tue, 29 Apr 2008 12:40:37 +0000 (06:40 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 29 Apr 2008 13:16:18 +0000 (07:16 -0600)
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

index d93b3578c5e22f67fdb48b074478c042b81e31bf..7a3625f52a03b837551697cf2bc23b54bc488d32 100644 (file)
@@ -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