All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tty: serial: max310x: Add terminating entry for spi_device_id table
@ 2012-11-04 15:34 Axel Lin
  0 siblings, 0 replies; only message in thread
From: Axel Lin @ 2012-11-04 15:34 UTC (permalink / raw)
  To: Alan Cox, Greg Kroah-Hartman; +Cc: Alexander Shiyan, linux-serial, linux-kernel

The spi_device_id table is supposed to be zero-terminated.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/tty/serial/max310x.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/tty/serial/max310x.c b/drivers/tty/serial/max310x.c
index 2bc28a5..1ab1d2c 100644
--- a/drivers/tty/serial/max310x.c
+++ b/drivers/tty/serial/max310x.c
@@ -1239,6 +1239,7 @@ static int __devexit max310x_remove(struct spi_device *spi)
 static const struct spi_device_id max310x_id_table[] = {
 	{ "max3107",	MAX310X_TYPE_MAX3107 },
 	{ "max3108",	MAX310X_TYPE_MAX3108 },
+	{ }
 };
 MODULE_DEVICE_TABLE(spi, max310x_id_table);
 
-- 
1.7.9.5




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

only message in thread, other threads:[~2012-11-04 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-04 15:34 [PATCH] tty: serial: max310x: Add terminating entry for spi_device_id table Axel Lin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.