Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp726365pxb; Tue, 2 Feb 2021 16:50:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTIlJpkfG2jSfevh4mKjM/GmljPalz1UPZkuLwvzmQOnDbX0LhbgFWrAIhqhIyyZTbCX7R X-Received: by 2002:a05:6402:1249:: with SMTP id l9mr593196edw.375.1612313424020; Tue, 02 Feb 2021 16:50:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612313424; cv=none; d=google.com; s=arc-20160816; b=nV34uHKaHXO8ZRZ5NtlG603ftKjm1+2HgQeBotFAb6c7qa4gEa98Q9dBj61V8QQI4W 5DzuBiCOplkvms9Xajn26zwcbx2e4iKjjxUTjJIHsagCP7peuGsSYNxRAa0+twrNz8g/ 0FhkIpbUDJPLEU8P2TiSi0Ws8buWZuZ87UPYcvJsCd69Qhj0x+fhiMLQimtre3M7LlxY A64BJizSGYuFwF5gcNlK0OQpyMcHE88iS08KdYF+Zhjlt3ZpKjZ3KU7pCa/srd7TGdRB LN7AKtSfTUiJvOXe6J5Y61YL8d7Gj5YSWaRvEF4InEjiRELTWmsfIc/ifiyH8xQemfTn Ctfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Y7+ge6HtI7bZyfOCGNWbMXMZ+Jk8jpA1U0zoCTk99hU=; b=yFB1FUNKbCH/qvCg2XnNrUPm3DpHVZpq1NKiDuWFfGmmWBf+3qceUJbETPCjSa1A5i Nw38yMp+xisEFhhP+8SgFPTHwTQ95elb6sI2Jt006jnUK5XrNUM8u2wqF3Au2oEqkkbU xiTXIcDc2DsodVlYDfiN9094dgloyjOWY0pUNjdg/J9co+O63iA3OcRIGSoh33gzvly+ 5bC4FNy+F2XPGIF1maUg2Avza/d4cJRbFNXvWbicQAScvQm7VlF78ZmF/SL0ml5eZILp cu4XX2jI519H25K+sAI6ENar8NPIABqb38ewwnf304BqFddyagOOPul9eAVYNMjfnZPz ASHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GYd2LvG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a19si290896ejs.267.2021.02.02.16.49.59; Tue, 02 Feb 2021 16:50:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=GYd2LvG6; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240382AbhBBUE6 (ORCPT + 99 others); Tue, 2 Feb 2021 15:04:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:38206 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232744AbhBBNpk (ORCPT ); Tue, 2 Feb 2021 08:45:40 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B0EA364F7B; Tue, 2 Feb 2021 13:40:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273253; bh=ld8Bdw80jS1RKI++vEXxfl3dzwNVg1yeAttiamGbiZ0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GYd2LvG6oXAAoPGrJNRjkFWnHCsS9hmH9AaopJnj4srVWrWFK4t/mA6NDm2UxakMU 8WyXqNqq1UY7F+e6H3ot47a4NQyPWvphGkUL1uIHkVMhYqjkksPl04zVEBrniQeHBX +N+xbr+QoqlHsUZLVNE9cYzWiSsE/0WY4uGBXYXs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Arnd Bergmann Subject: [PATCH 5.10 036/142] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] Date: Tue, 2 Feb 2021 14:36:39 +0100 Message-Id: <20210202132959.197609557@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132957.692094111@linuxfoundation.org> References: <20210202132957.692094111@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Beznea commit 680896556805d3ad3fa47f6002b87b3041a45ac2 upstream. 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: caab13b49604 ("drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs") Cc: stable@vger.kernel.org #4.12+ Signed-off-by: Claudiu Beznea Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- drivers/soc/atmel/soc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -269,7 +269,8 @@ static const struct of_device_id at91_so { .compatible = "atmel,at91rm9200", }, { .compatible = "atmel,at91sam9", }, { .compatible = "atmel,sama5", }, - { .compatible = "atmel,samv7", } + { .compatible = "atmel,samv7", }, + { } }; static int __init atmel_soc_device_init(void)