Message ID | 20210202132943.364970829@linuxfoundation.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp237221jah; Tue, 2 Feb 2021 06:17:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/V0vBJElQlnEXLyC91kxQWTGz2mKQsdtzrea4DdSZsIyCuohMiZu5FYL4BGbdm4/ldL4L X-Received: by 2002:a17:906:cb9a:: with SMTP id mf26mr14974718ejb.339.1612275421557; Tue, 02 Feb 2021 06:17:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612275421; cv=none; d=google.com; s=arc-20160816; b=DX5WD4HKJOgiKxphyVNKG7MFVlr6H6WxPoABnYDfedLNxPQUqVfQC3cYgkFJhmsKlJ Ps0lcb29BpGD4mUFShgvLy53LqGU3jtoucq2mmoWYqwUDfDdeW6D0VNy/R9vOOclm683 ybD21WWAdO1QXshhzmaxM3OBJxTAsH7xKP3qKDz6Xum98fNmpfySKHTV/0f2x/N796Qx fZv3l3Avr4+luTiCXsqouRQ5Tj+y3Ms+/mxuMDUS/+Zyz53UPtaww6Smx0+/RRawZXDR sO/nOEmN8yiwhILb9CAMRtBGo1McW/c30UVKWZU4/Ogle1KucJ3PNi7CVnwV1NAM23Di gJKQ== 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=0AKXZ/27jCLX33ltHaHcXWQ+u/0YPf/9M0miaognk6M=; b=RUIcmSeGBKeKHMeB1wQpkqNGLsh9W2+qnOykPAduib0OgoIv8Yvt5WHCPAhGduBV3o dHEZHDNOF5wMepdD89EAPoEIxJLrGlDBct0xdtS1aLakqJFosp0c31o+gWJuIl0a8IG+ EP99ISW0z4Bu/9rWTrqAqks+v6IVXeQa276fmj1HmhSP9Toa0bqbvj4mcNP/cX57jF42 XLoCKEmOtXHfq+DHNbrZr6paw1pFGhyJ9snhWOrH/JVTq0Wnkbox+8n9V1feLA5Mabx5 7ZmuLf8mYGSIT6ZO+lnmZYNgMVelG2UEzEqdWzzj0tsnxkNV6fgMGZZGSBtbJCGU3EKS SB4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L8F34kWz; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id oq7si14026487ejb.671.2021.02.02.06.17.01; Tue, 02 Feb 2021 06:17:01 -0800 (PST) Received-SPF: pass (google.com: domain of stable-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=L8F34kWz; spf=pass (google.com: domain of stable-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=stable-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 S234278AbhBBOPe (ORCPT <rfc822;semen.protsenko@linaro.org> + 13 others); Tue, 2 Feb 2021 09:15:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:49180 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234214AbhBBONe (ORCPT <rfc822;stable@vger.kernel.org>); Tue, 2 Feb 2021 09:13:34 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id AAE8E64FB6; Tue, 2 Feb 2021 13:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612273990; bh=zK05Tq0SZZx1iULK5kSKcLKe+ebFP28CGCjKv3kH2w8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L8F34kWzGn7A1UhKAN/qxlwwn/6+j4szBPp7bOhzALB/M5I0XilFLTRSvni+LjF1p aO8Hz2A1SjegKBa1RABDDHYsKeTU2dK1m0iYS0ZEoc8FyciZTcaP64qOi0CQpW7um3 x/5JeRaJzBm/NFTuAl7j/9bRs20QSTIvQxvRKdvY= From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, stable@vger.kernel.org, Nicolas Ferre <nicolas.ferre@microchip.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Ludovic Desroches <ludovic.desroches@microchip.com>, Sudeep Holla <sudeep.holla@arm.com>, Arnd Bergmann <arnd@arndb.de> Subject: [PATCH 4.19 11/37] drivers: soc: atmel: Avoid calling at91_soc_init on non AT91 SoCs Date: Tue, 2 Feb 2021 14:38:54 +0100 Message-Id: <20210202132943.364970829@linuxfoundation.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210202132942.915040339@linuxfoundation.org> References: <20210202132942.915040339@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: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
None
|
expand
|
--- a/drivers/soc/atmel/soc.c +++ b/drivers/soc/atmel/soc.c @@ -254,8 +254,20 @@ struct soc_device * __init at91_soc_init return soc_dev; } +static const struct of_device_id at91_soc_allowed_list[] __initconst = { + { .compatible = "atmel,at91rm9200", }, + { .compatible = "atmel,at91sam9", }, + { .compatible = "atmel,sama5", }, + { .compatible = "atmel,samv7", } +}; + static int __init atmel_soc_device_init(void) { + struct device_node *np = of_find_node_by_path("/"); + + if (!of_match_node(at91_soc_allowed_list, np)) + return 0; + at91_soc_init(socs); return 0;