Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp699319pxb; Tue, 2 Feb 2021 16:00:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzPEncJ0fAEUkXGtxu0Obp6L5Y17Vwcqtr5sHFI9Ef9vXxKIdY7ySlm5ZlDBPKFea7oAkc1 X-Received: by 2002:aa7:ce87:: with SMTP id y7mr505294edv.211.1612310452846; Tue, 02 Feb 2021 16:00:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612310452; cv=none; d=google.com; s=arc-20160816; b=xN9EUE5/2udB781fihtMpgYuu+p2LNbSGi/QP31kH7vpr1mBROnYVj8nxHxckJHpsU TrK6aSg6lNRW8I3R0uf7NCaxPLcp5SMU1OY3jIpKfzeivkqX6JVEGPox0Kqm66/Kc54m xB7wl4gzq7kwU13/kIDEwK4aRAF1vfIvTawOwHhU1Hl9qT8qzX7pQ9AQe+nza3yEVtM/ S1lyep94JBKCRh1eVJhd4l2icPTpoLnuYM0mrMkL1nbylSCZJhjQy/PAgBu8yzdDgxTS bd0L3MpnoxuDEbh8ldHRmRak2lBJR351LRhv7RQdKqSqexU2ksVytg+gjth9j68VGmnV 4iwA== 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=1zgXL9D9AwhuRjOgZcby7XHF7/zp/9DqM5ZYgHKL5f0=; b=svuMIsuoLGvYte/Pvl67nYwDfl6mSiljoHkk+yxOy5LiQWn0YeLgg79YHanq7N4a1b l6nSzJIFD5KNyumbvZQRC3QUGMKCHn4N3is8wYT2bwgllX+vG3YyIvjHiOVccpEaCv0A 6EQF8BHoyMJ9A+22ZtNmX+aZcFQUlO/vJqV+Zol8e+ZNkJukeT5zqBq4A/s+SPq+qHG/ k+jwNNlzeXK7qielwgpgD2syt7fJyRq6T6ExwdV4pYYBq6/OhY22psrXIc2WkDIDoh2H Is61SGnd0DLkxZF4rVpuPardLiDvD9rgg4A+7H6uf9fy06EjmRXCYcRNCPUfrf4j2Iho Kd9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WNLbYmqt; 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 h17si185452edv.235.2021.02.02.16.00.28; Tue, 02 Feb 2021 16:00:52 -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=WNLbYmqt; 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 S237594AbhBBRmg (ORCPT + 99 others); Tue, 2 Feb 2021 12:42:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:48892 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234126AbhBBOMX (ORCPT ); Tue, 2 Feb 2021 09:12:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 823A464FB1; Tue, 2 Feb 2021 13:52:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273932; bh=AfAtCAdUTLCzHvef04qEg8pRnvR1WbD+PEiA/0jNdxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WNLbYmqt3AHnUsoU3ekaWoqV6NjrPgrFShLd92llpQ8P1a8jnYYIpDLnuaIZEBcYz B/kk7YSHmZrglnpPV+65VQY7m1onS2KP6gBFNRCO6KotW5Pw/qOkjZ8GLlcmniBDGt I546wvguucioFbt3tI9acUvjtvjsnxadPJqDDisY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Arnd Bergmann Subject: [PATCH 4.14 07/30] drivers: soc: atmel: add null entry at the end of at91_soc_allowed_list[] Date: Tue, 2 Feb 2021 14:38:48 +0100 Message-Id: <20210202132942.430407251@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132942.138623851@linuxfoundation.org> References: <20210202132942.138623851@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 @@ -250,7 +250,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)