From mboxrd@z Thu Jan 1 00:00:00 1970 From: Axel Lin Subject: [PATCH] tty: serial: max310x: Add terminating entry for spi_device_id table Date: Sun, 04 Nov 2012 23:34:18 +0800 Message-ID: <1352043258.11324.2.camel@phoenix> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-da0-f46.google.com ([209.85.210.46]:34540 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754161Ab2KDPe1 (ORCPT ); Sun, 4 Nov 2012 10:34:27 -0500 Received: by mail-da0-f46.google.com with SMTP id n41so2324732dak.19 for ; Sun, 04 Nov 2012 07:34:26 -0800 (PST) Sender: linux-serial-owner@vger.kernel.org List-Id: linux-serial@vger.kernel.org To: Alan Cox , Greg Kroah-Hartman Cc: Alexander Shiyan , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org The spi_device_id table is supposed to be zero-terminated. Signed-off-by: Axel Lin --- 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