From patchwork Tue Jan 26 09:29:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 12045985 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F529C43381 for ; Tue, 26 Jan 2021 09:38:55 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C627823117 for ; Tue, 26 Jan 2021 09:38:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C627823117 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=microchip.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=hAI/iupDTl3bbTAvpEDeQCN1Qz1kpy7pcsBY+DL+9Co=; b=OKsG025jVxT4Jt5pbawub2V10 2nVwie5aE3SbONuaZDyqKDeWmHlar2Vq3QRrj8pkoekjVuZjPHjvmVJMwkEEsbL+BhLOAGATMT3z4 wVCJ4qf2bLLfRG3yeQEDrX5y7tjA/KfxYxlJyakNYVLxUY9JZDJrqnBXVIpiLDZg+9BMQH/zQ8q0M LbNmkROsJJJQ/gGr6K7+5rI32U1D1jqIKoCBpFdY2HBESN+QJsSMYiplaP7Nu1RBqWzkIisbrsLfC n6mXV5cWHIuSGlodM9f+deAAyJkiI4IFZ+NQcEdIpogGVrcWhaIitQilIx8Z6NpJ6TreUdSDARXy9 pCXkczLbg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4Kma-0007wN-P9; Tue, 26 Jan 2021 09:37:08 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4KmO-0007sY-LQ for linux-arm-kernel@lists.infradead.org; Tue, 26 Jan 2021 09:36:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1611653816; x=1643189816; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=sqpwPF9U4qG1g/0WmrtNvE4y7SqpqZVyPv6CCH+N9zY=; b=AR6z8mGvrk8eXkUgHeKwR0OOLEryucKy4FH4kD8as1usPQftWam4vM1X bjWSjhKZ7OXw4pp9cLEpQrBPVDvi5TZenxuhIWkI+rChm7tL3EtxjIvj0 fmy/YPial5+pbjTSH12C6zmuDL0Z25SotwAX3ux1RUGyLFOS5tICxsDf6 T4uYLgAI/xanFs7DFHxaPTCJSzT5F3l6h0BbmLZkEsesh1sF9r56BPr5Q rcfnJdUD2g1eotwbtusPeiSlLdpyKWlxQGCGJvs0lqzA6HWPi0Pa+mg2h vvUZLi4mtXuLLlH5UvpvL9FrVk5HN9QFrdP3od+2NGYzfqjy6TF1dW4JW Q==; IronPort-SDR: jC436hV2ubchyafcCOfkAkD47hEkIHJ7MjO+/9gK+NndCheCkyB2hPA4XIsJpWLz6p6uP8eQAp RVogrgGYv8hV4CdOTxMhjlMS0FlBECsLGN6LcEHzLylgor3sh+3wTs1WPR62k83OYuOvWuUkwN BYlc1vXt/sd+GBasXsP39vCUf1E639w9k5d/O991yiHn6mca/OCgCYXtLp5af5dzVJMVHKTgoq X0qTQKzkQsH+cgE5xONFq8iezuKZtGVtp3JZ2E+RTyDUrVviKL+yys24K6NZNkXfWB5sp7TApI 47c= X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="41780882" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 26 Jan 2021 02:36:56 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Tue, 26 Jan 2021 02:36:55 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Tue, 26 Jan 2021 02:36:53 -0700 From: Claudiu Beznea To: , , , Subject: [PATCH v2 4/7] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] Date: Tue, 26 Jan 2021 11:29:33 +0200 Message-ID: <1611653376-24168-5-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1611653376-24168-1-git-send-email-claudiu.beznea@microchip.com> References: <1611653376-24168-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_043656_891519_602385E8 X-CRM114-Status: GOOD ( 11.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Claudiu Beznea , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, sudeep.holla@arm.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org of_match_node() calls __of_match_node() which loops though the entries of matches array. It stops when condition: (matches->name[0] || matches->type[0] || matches->compatible[0]) is false. Thus, add a null entry at the end of at91_soc_allowed_list[] array. Fixes: 960ddf70cc11 ("drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs") Signed-off-by: Claudiu Beznea --- drivers/soc/atmel/soc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/atmel/soc.c b/drivers/soc/atmel/soc.c index 8d89e2426fc8..9a2c08a26ea4 100644 --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -270,7 +270,8 @@ static const struct of_device_id at91_soc_allowed_list[] __initconst = { { .compatible = "atmel,at91rm9200", }, { .compatible = "atmel,at91sam9", }, { .compatible = "atmel,sama5", }, - { .compatible = "atmel,samv7", } + { .compatible = "atmel,samv7", }, + { } }; static int __init atmel_soc_device_init(void)