Skip to contentSkip to conversation

tty: serial: max310x: Add terminating entry for spi_device_id table

PATCH New Axel Lin 1 participant 1 message Nov 4, 2012 TTY layer and serial drivers

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 tty: serial: max310x: Add terminating entry for spi_device_id table

The spi_device_id table is supposed to be zero-terminated.

---
 drivers/tty/serial/max310x.c |    1 +
 1 file changed, 1 insertion(+)
drivers/tty/serial/max310x.c +1 -0
index 2bc28a5..1ab1d2c 100644
@@ -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);
 
Signature · 1 line
1.7.9.5