From patchwork Thu Sep 3 18:35:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 514223 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-io0-x239.google.com (mail-io0-x239.google.com [IPv6:2607:f8b0:4001:c06::239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A271B1401CD for ; Fri, 4 Sep 2015 04:35:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b=jZTXaXuK; dkim-atps=neutral Received: by iofb144 with SMTP id b144sf17155455iof.1 for ; Thu, 03 Sep 2015 11:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=mime-version:from:to:cc:subject:date:message-id:x-original-sender :x-original-authentication-results:reply-to:content-type:precedence :mailing-list:list-id:x-spam-checked-in-group:list-post:list-help :list-archive:sender:list-subscribe:list-unsubscribe; bh=lHJ8YGSrcRCj8NzMdjhqaGZaV3q/QfU6McKXpHpoC1o=; b=jZTXaXuKEEpU71avS5yxTQYC8k2eWED0rNajJGq5GvBqj2ME6u/pmB6XAB49Y4UOOl guwNQ990BiWVg2PLKhiBgk0u0MkL2slQerNTQ7kZ/u8I+u3xT6Ltydmv40V5R9pN3x9Z VFTLkObSmOyyVoTDNDFVBnFDGgkLvAupTjBi6gj0AUfOTqt/NfAMNDqGyy0KmGjAvcHJ sq7L+7jua8ugVBthNvY0GwJ9MyJAIQqW8e2eV7YOXMg38+US7yoBs9Aor8TE9JBsej+L 9RSBBLLlbfQGoYwHCXdpnNw7WSTfgCPGvwnAsow+QNpJtIFfQobqz7oh+2dAXW0xur/7 uxkg== X-Received: by 10.182.52.169 with SMTP id u9mr654291obo.21.1441305351793; Thu, 03 Sep 2015 11:35:51 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: rtc-linux@googlegroups.com Received: by 10.182.112.232 with SMTP id it8ls1185888obb.34.gmail; Thu, 03 Sep 2015 11:35:51 -0700 (PDT) X-Received: by 10.182.241.72 with SMTP id wg8mr44423372obc.2.1441305351432; Thu, 03 Sep 2015 11:35:51 -0700 (PDT) Received: from mail-yk0-x22e.google.com (mail-yk0-x22e.google.com. [2607:f8b0:4002:c07::22e]) by gmr-mx.google.com with ESMTPS id j22si1109467ywg.2.2015.09.03.11.35.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Sep 2015 11:35:51 -0700 (PDT) Received-SPF: pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4002:c07::22e as permitted sender) client-ip=2607:f8b0:4002:c07::22e; Received: by mail-yk0-x22e.google.com with SMTP id g206so52458619ykd.1 for ; Thu, 03 Sep 2015 11:35:51 -0700 (PDT) X-Received: by 10.13.210.5 with SMTP id u5mr44101717ywd.46.1441305351182; Thu, 03 Sep 2015 11:35:51 -0700 (PDT) Received: from localhost.localdomain ([187.64.235.43]) by smtp.gmail.com with ESMTPSA id w186sm20019608ywf.18.2015.09.03.11.35.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 03 Sep 2015 11:35:50 -0700 (PDT) From: Fabio Estevam To: alexandre.belloni@free-electrons.com Cc: rtc-linux@googlegroups.com, linus.walleij@linaro.org, Fabio Estevam Subject: [rtc-linux] [PATCH] rtc: ab8500: Add a sentinel to ab85xx_rtc_ids[] Date: Thu, 3 Sep 2015 15:35:18 -0300 Message-Id: <1441305318-24773-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 X-Original-Sender: festevam@gmail.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of festevam@gmail.com designates 2607:f8b0:4002:c07::22e as permitted sender) smtp.mailfrom=festevam@gmail.com; dmarc=pass (p=NONE dis=NONE) header.from=gmail.com Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: rtc-linux@googlegroups.com X-Google-Group-Id: 712029733259 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Fabio Estevam Add a sentinel to ab85xx_rtc_ids[] in order to fix the following error: drivers/rtc/rtc-ab8500: struct platform_device_id is 24 bytes. The last of 2 is: 0x61 0x62 0x38 0x35 0x34 0x30 0x2d 0x72 0x74 0x63 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x8c FATAL: drivers/rtc/rtc-ab8500: struct platform_device_id is not terminated with a NULL entry! Reported-by: Olof's autobuilder Signed-off-by: Fabio Estevam Reviewed-by: Krzysztof Kozlowski Acked-by: Linus Walleij --- drivers/rtc/rtc-ab8500.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c index 8537d1e..51407c4 100644 --- a/drivers/rtc/rtc-ab8500.c +++ b/drivers/rtc/rtc-ab8500.c @@ -445,6 +445,7 @@ static const struct rtc_class_ops ab8540_rtc_ops = { static const struct platform_device_id ab85xx_rtc_ids[] = { { "ab8500-rtc", (kernel_ulong_t)&ab8500_rtc_ops, }, { "ab8540-rtc", (kernel_ulong_t)&ab8540_rtc_ops, }, + { /* sentinel */ } }; MODULE_DEVICE_TABLE(platform, ab85xx_rtc_ids);