From patchwork Fri Jan 5 23:20:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 123568 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1402479qgn; Fri, 5 Jan 2018 15:21:32 -0800 (PST) X-Google-Smtp-Source: ACJfBotm+TjMqPw8e8O60elxeddIzp+O8QPh8C4mzsWhKrjAlxzx6OfSwibMReRWUh5G3MBnxQTw X-Received: by 10.98.249.7 with SMTP id o7mr4390271pfh.107.1515194492609; Fri, 05 Jan 2018 15:21:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515194492; cv=none; d=google.com; s=arc-20160816; b=sjf1VxCG6To4Edfqpf+lq9DZwat9/uzq4GHzQZPAmaMZiUoNYgfLy0uGU5mHhuSmCu o8KICIcHgxUROaugaRSZ1yYnr/MHLZYmUmqv63BFMqV8QUkTSEW6Hvc9nVyPWCunO+NG 7iB6eGUxqeHWQ8nUlD6tML88LRmNbPjhXTvw1qHDkp41zrT8C2wpFCdUDU7ql29x4pdY kc43GwzXdcx5to4BfZ/AUc4/BNm4Eo/9J2ByPpKDkWgO8cbW8+ZWhphTlNWbQSX8x9t6 iso/n3m1b6sajxS67sXFDJZDrpuV1aSrJDg3TC/GqoaoGJ+n6/kupBlIUXWQXsIRVJwP or0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=koOXD4+95TBHlVQruy49bUHvb3p04RavtoyrqxDCcLk=; b=RoVBHojW8x8TjMhcXZKY6Rr022KjDirD8JcZ9hsRRdKVBuH5353qyxuXOYCLVXd7Se RinLWwccMYWyaBGSA1ge2bXx/ut4ss6xZ7U4ZbPHkQ8hL516LSOfNQqKcdU5AVW5tO7+ sGSMTZqA5+t4/kq+64XGgpbfQ7l4DDKcY+PSHRUQkKdytqShvoMbDluf+G1FQYQRJ6nQ uvFJspy4z2k4rQk+3QGqp46pTv8anp5rbXHkAIkhgf5p6RA7QZaX3uysKghaoUGpJV+C pdtszmUnD91qex8RbJlR5pcWS1ikHXhEWlHdiyPdeR3hK2S2OBpBnoK3ZZUA/ZGcAjIv BiKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n26si4174006pgc.36.2018.01.05.15.21.32; Fri, 05 Jan 2018 15:21:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753339AbeAEXVa (ORCPT + 6 others); Fri, 5 Jan 2018 18:21:30 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:42720 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753132AbeAEXVF (ORCPT ); Fri, 5 Jan 2018 18:21:05 -0500 Received: by mail-ot0-f196.google.com with SMTP id d2so5125927oth.9; Fri, 05 Jan 2018 15:21:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=GSmPZ2mVZmC3+iBOMOE1kBDM9lfU+GuRihDTQfdSh8g=; b=WCAcMySQs4206LEV0BttEBSuoFCqUxc/jb5LZxSnFeDkyTxVS7jNuPqQcAJFBLd3nD waQzDCbIbDYFuy5YeXzCE6F/3F9lQvkFETsgNuQJWzelAfdeHwfcsIOGOdrbMl4q6ziq syelnX2M7HBcLd16q1XM9hX4oJ0WN7xd2ddvscwYCg7wS1vatGqdeprG1OHSgBQh5ugS RjULfCzagA/DpfE86N00SJHeQ++4NMtRYMZfjxO1BtAMMYjcM6kbSTyzkCyUs9EUuEMy NlPFp5dztBXMyVAmRUr9oKxy8uGDu5cZvAyige3BQT+nquq8VZvcjZbmxs5WfW1wOmko chOw== X-Gm-Message-State: AKwxytdHPj2iI2xTLj6QpnjSfpsy5ZtE6kg8963F9Z6eZY4Z3o5zqV5i 2cDO9m6GAb9EzNK7Lh7at+jgPS4= X-Received: by 10.157.73.167 with SMTP id g39mr3121512otf.140.1515194464837; Fri, 05 Jan 2018 15:21:04 -0800 (PST) Received: from xps15.usacommunications.tv (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id u1sm1969998otc.3.2018.01.05.15.21.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 15:21:04 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Chris Zankel , Max Filippov , linux-xtensa@linux-xtensa.org Subject: [PATCH 7/7] xtensa: remove arch specific early DT functions Date: Fri, 5 Jan 2018 17:20:54 -0600 Message-Id: <20180105232054.27394-8-robh@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180105232054.27394-1-robh@kernel.org> References: <20180105232054.27394-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Now that the DT core code handles bootmem arches, we can remove the xtensa specific early_init_dt_alloc_memory_arch function. The common early_init_dt_add_memory_arch can be used too now that xtensa switched to memblock. Cc: Chris Zankel Cc: Max Filippov Cc: linux-xtensa@linux-xtensa.org Signed-off-by: Rob Herring --- This is dependent on patch 1. Please ack and I'll take or apply after 4.16-rc1. arch/xtensa/kernel/setup.c | 12 ------------ 1 file changed, 12 deletions(-) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Max Filippov diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 08175df7a69e..82bd1a94157c 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -20,7 +20,6 @@ #include #include #include -#include #include #include #include @@ -218,17 +217,6 @@ static int __init xtensa_dt_io_area(unsigned long node, const char *uname, } #endif -void __init early_init_dt_add_memory_arch(u64 base, u64 size) -{ - size &= PAGE_MASK; - memblock_add(base, size); -} - -void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) -{ - return __alloc_bootmem(size, align, 0); -} - void __init early_init_devtree(void *params) { early_init_dt_scan(params);