Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp675959pxb; Mon, 25 Oct 2021 16:27:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3imGHoecdGeSZ6+t0YpuN1kDgOb8R/q89L0zJ5RhzmlfL9D1BCC+Yi/zkb7s+qn5XMwXL X-Received: by 2002:a50:934f:: with SMTP id n15mr22401808eda.391.1635204438809; Mon, 25 Oct 2021 16:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635204438; cv=none; d=google.com; s=arc-20160816; b=Ih/zSwnZowOuvrF1eIoIPp8jb13thXa2hFki5vU+U01RymACPFA8iDAlNp7yYreO4k EKibJfAsDZretvPrjxXXC8YopZm8X3msRum0l2+eTFjQBqqaINYMaxxg2Bjc0eOgdOhv WlzNWdv79qLKn8IbtMLzbgUowGKHztJUpYJiVdIY2hC7BQK5ztTO1u/x45UZ6GtfvrB1 CdFZHLNSY7tNsX19UP+BbMckmq+LG8zFXUE1TGPkc/X6P4BA+y8DPbjfGlmOOUq+4BVS CUvA+H2y2VkKjvYGOGCBTXSU1U67qrPsTxvSxg6nOdojfWPDcNM4rhADiRtUYFI71vvj 6Okw== 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=CkPdT3pNjee2Xb0087oK4VV8Le1hH+ii39eLNz/904Q=; b=hxP3DWPET2/UNjfyODLUQOS2euDDOooTDwCmsesw6nYAA4XzSizT2QUCX9PCjYqkJk Cc09IlZBgibt3hPSQzBIw+0WMXsjyCynx0/EN+IF2PKXB98ZCwobqG2UIYPwK1msL/Nv xdRNxp4q0HWbi/hny8aKiqmNFI7YUZ3ECHftu6cvI3y+wikwUF5uBvpalh6RAOo8IMOK pst+o67mvgOvbZs9BJ0RzMdmUdHfuZYMnm4GRPtqCcJv/9vHvtYPH9FLKt72OBZ1JBIS IvxupHeib82+4dtPNotFHc8L3MY1FtcQdAZlyjKBsJsAMPXEmDA7OGRvdQlKhI35YPaa y7ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AqLtEAbm; 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 cw1si24422721ejc.693.2021.10.25.16.26.54; Mon, 25 Oct 2021 16:27:18 -0700 (PDT) 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=AqLtEAbm; 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 S234472AbhJYTZs (ORCPT + 99 others); Mon, 25 Oct 2021 15:25:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:42630 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233034AbhJYTXg (ORCPT ); Mon, 25 Oct 2021 15:23:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3DC5E6109E; Mon, 25 Oct 2021 19:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1635189673; bh=BBTq1XMHgxZOIYSLL3kcvMpjtwUESCOr80d3awmgXKA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AqLtEAbmBjHetrbcZL+3vHC7SH0feKFS6FyhX/44RC9wIL4Iy2Diq2/xPQ6yQjPlM i+rB73ZYw4QVpxZM5hzK8wyfLSo2tFrOT3trYV4vCoyaXHFnlJkQmfJM/EXLOPakYr fwRbfQKRsWT8KZtViDqf0QVHZq5bHRCMx14aoAWc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov , Sasha Levin Subject: [PATCH 4.14 03/30] xtensa: xtfpga: use CONFIG_USE_OF instead of CONFIG_OF Date: Mon, 25 Oct 2021 21:14:23 +0200 Message-Id: <20211025190923.706311003@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211025190922.089277904@linuxfoundation.org> References: <20211025190922.089277904@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: Max Filippov [ Upstream commit f3d7c2cdf6dc0d5402ec29c3673893b3542c5ad1 ] Use platform data to initialize xtfpga device drivers when CONFIG_USE_OF is not selected. This fixes xtfpga networking when CONFIG_USE_OF is not selected but CONFIG_OF is. Signed-off-by: Max Filippov Signed-off-by: Sasha Levin --- arch/xtensa/platforms/xtfpga/setup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/xtensa/platforms/xtfpga/setup.c b/arch/xtensa/platforms/xtfpga/setup.c index 42285f35d313..982e7c22e7ca 100644 --- a/arch/xtensa/platforms/xtfpga/setup.c +++ b/arch/xtensa/platforms/xtfpga/setup.c @@ -85,7 +85,7 @@ void __init platform_calibrate_ccount(void) #endif -#ifdef CONFIG_OF +#ifdef CONFIG_USE_OF static void __init xtfpga_clk_setup(struct device_node *np) { @@ -303,4 +303,4 @@ static int __init xtavnet_init(void) */ arch_initcall(xtavnet_init); -#endif /* CONFIG_OF */ +#endif /* CONFIG_USE_OF */ -- 2.33.0