The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 1/2] rtc: rtc-mc13xxx: fix unterminated platform_device_id table
@ 2011-02-23  9:27 Axel Lin
  2011-02-23  9:28 ` [PATCH 2/2] net/fec: " Axel Lin
  2011-02-23  9:57 ` [PATCH 1/2] rtc: rtc-mc13xxx: " Uwe Kleine-König
  0 siblings, 2 replies; 4+ messages in thread
From: Axel Lin @ 2011-02-23  9:27 UTC (permalink / raw)
  To: linux-kernel
  Cc: Sascha Hauer, Uwe Kleine-König, Alessandro Zummo,
	Thomas Gleixner, rtc-linux

The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/rtc/rtc-mc13xxx.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/rtc/rtc-mc13xxx.c b/drivers/rtc/rtc-mc13xxx.c
index 5314b15..6e6de98 100644
--- a/drivers/rtc/rtc-mc13xxx.c
+++ b/drivers/rtc/rtc-mc13xxx.c
@@ -408,6 +408,7 @@ const struct platform_device_id mc13xxx_rtc_idtable[] = {
 	}, {
 		.name = "mc13892-rtc",
 	},
+	{ }
 };
 
 static struct platform_driver mc13xxx_rtc_driver = {
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] net/fec: fix unterminated platform_device_id table
  2011-02-23  9:27 [PATCH 1/2] rtc: rtc-mc13xxx: fix unterminated platform_device_id table Axel Lin
@ 2011-02-23  9:28 ` Axel Lin
  2011-02-28 20:36   ` David Miller
  2011-02-23  9:57 ` [PATCH 1/2] rtc: rtc-mc13xxx: " Uwe Kleine-König
  1 sibling, 1 reply; 4+ messages in thread
From: Axel Lin @ 2011-02-23  9:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: David S. Miller, Uwe Kleine-König, netdev

The platform_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
 drivers/net/fec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 74798be..f8a81ec 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -74,7 +74,8 @@ static struct platform_device_id fec_devtype[] = {
 	}, {
 		.name = "imx28-fec",
 		.driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_SWAP_FRAME,
-	}
+	},
+	{ }
 };
 
 static unsigned char macaddr[ETH_ALEN];
-- 
1.7.2




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] rtc: rtc-mc13xxx: fix unterminated platform_device_id table
  2011-02-23  9:27 [PATCH 1/2] rtc: rtc-mc13xxx: fix unterminated platform_device_id table Axel Lin
  2011-02-23  9:28 ` [PATCH 2/2] net/fec: " Axel Lin
@ 2011-02-23  9:57 ` Uwe Kleine-König
  1 sibling, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2011-02-23  9:57 UTC (permalink / raw)
  To: Axel Lin
  Cc: linux-kernel, Sascha Hauer, Alessandro Zummo, Thomas Gleixner,
	rtc-linux

On Wed, Feb 23, 2011 at 05:27:24PM +0800, Axel Lin wrote:
> The platform_device_id table is supposed to be zero-terminated.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>
> ---
>  drivers/rtc/rtc-mc13xxx.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/drivers/rtc/rtc-mc13xxx.c b/drivers/rtc/rtc-mc13xxx.c
> index 5314b15..6e6de98 100644
> --- a/drivers/rtc/rtc-mc13xxx.c
> +++ b/drivers/rtc/rtc-mc13xxx.c
> @@ -408,6 +408,7 @@ const struct platform_device_id mc13xxx_rtc_idtable[] = {
>  	}, {
>  		.name = "mc13892-rtc",
>  	},
> +	{ }
>  };
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
for both patches.  I wonder how that worked before, just luck I assume.

Thanks
Uwe

-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] net/fec: fix unterminated platform_device_id table
  2011-02-23  9:28 ` [PATCH 2/2] net/fec: " Axel Lin
@ 2011-02-28 20:36   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-02-28 20:36 UTC (permalink / raw)
  To: axel.lin; +Cc: linux-kernel, u.kleine-koenig, netdev

From: Axel Lin <axel.lin@gmail.com>
Date: Wed, 23 Feb 2011 17:28:46 +0800

> The platform_device_id table is supposed to be zero-terminated.
> 
> Signed-off-by: Axel Lin <axel.lin@gmail.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-28 20:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23  9:27 [PATCH 1/2] rtc: rtc-mc13xxx: fix unterminated platform_device_id table Axel Lin
2011-02-23  9:28 ` [PATCH 2/2] net/fec: " Axel Lin
2011-02-28 20:36   ` David Miller
2011-02-23  9:57 ` [PATCH 1/2] rtc: rtc-mc13xxx: " Uwe Kleine-König

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