Skip to contentSkip to conversation

mpc5200: Fix unterminated of_device_id table

PATCH New Grant Likely 2 participants 4 messages Apr 29, 2008 – May 6, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpc5200: Fix unterminated of_device_id table

From: Grant Likely <[email protected]>

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.

---

 drivers/serial/mpc52xx_uart.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/serial/mpc52xx_uart.c +1 -1
index d93b357..7a3625f 100644
@@ -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
#1 lore raw

PATCH 1/1 mpc5200: Fix unterminated of_device_id table

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 <[email protected]>
Date: Tue, Apr 29, 2008 at 6:43 AM
Subject: [PATCH] [POWERPC] mpc5200: Fix unterminated of_device_id table
To: [email protected], [email protected], [email protected]

From: Grant Likely <[email protected]>

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.

---

  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

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#2 lore raw
Quoted 4 lines · Grant Likely

Greg,

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

In the future, please email the [email protected] alias for things you want to go into the stable tree, otherwise there is a very good chance it will be missed.

Also, please mention the git id for the commit in Linus's tree so we don't have to go digging for it.

I'll go add this to the to-apply queue.

thanks,

greg k-h

#3 lore raw
Quoted 6 lines · Greg KH
Quoted 4 lines · Grant Likely

Greg,

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

Quoted 6 lines

In the future, please email the [email protected] alias for things you want to go into the stable tree, otherwise there is a very good chance it will be missed.

Also, please mention the git id for the commit in Linus's tree so we don't have to go digging for it.

Will do, Thanks Greg.

The git id is: bc775eac63c16dbcfabc4c6e949c0228edf3e11f

Cheers,
g.

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