From patchwork Fri Jan 5 23:14:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring \(Arm\)" X-Patchwork-Id: 123561 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1397399qgn; Fri, 5 Jan 2018 15:14:50 -0800 (PST) X-Google-Smtp-Source: ACJfBotNhJ2umTsiw2nUPh8UpQX1Bf4ylHr+RrlwsfV7MUCnbcX1rf1fnuGxMTmOhZVrvy3bB56u X-Received: by 10.84.229.143 with SMTP id c15mr4579832plk.300.1515194090594; Fri, 05 Jan 2018 15:14:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515194090; cv=none; d=google.com; s=arc-20160816; b=NLjS2HT9jTdifIKpnqpAmDmPR2FEjvtaANVXbFb5vqTakJf4Ozh1jmwvsDxSrYyo4T x9Icj3ag5gTPG7PATpK5gAn+f57S6r4985nALR7HdmL3y110tumWHZv3RjLYGqHAch1k V9VY9PIgwGTQL+9VtlvP10oqP5R6zTLsgrS0z/r6LVrrVsjUzct4qMvwKh5540UyYYDj TOvNMyVyFBqzEi1aQZpuQizyfumEK7hlxoaGCSF8lXQ11R+7elIdiqK3VQWU3asv9U9q U8Lpr1FdqetLRT3zygk+dlr67GP9QBl8WNOSBZp59/H+Mu/t45Ji5Wmphxk7Mgbg1j7t +hKQ== 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=0LBnnqjf+JYcv7Hs2WO4+gZN9BgoZl7bR2TdhCTKnpE=; b=iHOwWmAvuYHaZvjQu9GXkbIuIPPHG+l6G7JLigk6sMjwz044cdQf0MXqF4pFXnxbn+ Yt/Nwu70Ldh2LE3NC/hA2v3eSETarc1w/3sC11W2cFgeIKWiTdGbhwbbjWrGJtjLkUeg JDD7QfNUc62xU315noWrrSe2H00wWR6P8Z+/wdfGcZV22+iYnbuWYEgf7BmQEp4v0Ljw tnwHqX+/zjDq8HrQWDQQkMgrSDQ3f0MIxSAd7agQG8uEOzUJOnYiBMX7afsjd6mb7aZR IyvDOIHMNdBwNToXBV87tZOMaSly59jo0LIeYhA/hUuCTr82ac531SI0ljr/TNKHT3B6 giCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 n1si4627561pld.462.2018.01.05.15.14.50; Fri, 05 Jan 2018 15:14:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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 linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753228AbeAEXOe (ORCPT + 28 others); Fri, 5 Jan 2018 18:14:34 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:40909 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752979AbeAEXOa (ORCPT ); Fri, 5 Jan 2018 18:14:30 -0500 Received: by mail-ot0-f196.google.com with SMTP id d10so5158931oti.7; Fri, 05 Jan 2018 15:14:29 -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=0LBnnqjf+JYcv7Hs2WO4+gZN9BgoZl7bR2TdhCTKnpE=; b=sJkxqeNi1ouUJpED2/q5OybsyH0oaIpSsd5eVX3UrACYZP614RaKVxmgsRLomXILV7 CCqViMvylXCeDAUAHzwnrhNh+116N5PwzRYwYXe2gQU857RFAkKWSNrMUPMOVnV10NFk aAWGpQiItu+ihEetX4HESzuqwe4nmJVii2gb2C37VLagNZ/sXYJ/CYC0RWhzzgT/ShVz 0KE+dP//a48NnnFsNbmZINcbKxQtGmFMnpLBIVwq4pMI9km6Qk0fxZqxlfC6RKSlYZex aQFpNdFrPk7WTXSMp1vKOG74j0VGtjbCz8EUggMKotoPuyVSasQWSE8EA0mkM24Jglm9 b1qQ== X-Gm-Message-State: AKwxytdEakObr2XTHGyviTRSat0iUiZLEkDWa2YmdgPPVTb88H9AyLMl /vHNfUrKL5qn9y+FJjsQdoN2zFU= X-Received: by 10.157.28.141 with SMTP id l13mr2901022ota.174.1515194069456; Fri, 05 Jan 2018 15:14:29 -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 p24sm2824627oie.54.2018.01.05.15.14.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 15:14:28 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Ralf Baechle , linux-mips@linux-mips.org Subject: [PATCH 4/7] mips: remove arch specific early_init_dt_alloc_memory_arch Date: Fri, 5 Jan 2018 17:14:21 -0600 Message-Id: <20180105231424.19247-5-robh@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180105231424.19247-1-robh@kernel.org> References: <20180105231424.19247-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Now that the DT core code handles bootmem arches, we can remove the MIPS specific early_init_dt_alloc_memory_arch function. Cc: Ralf Baechle Cc: linux-mips@linux-mips.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/mips/kernel/prom.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.14.1 diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c index 0dbcd152a1a9..89950b7bf536 100644 --- a/arch/mips/kernel/prom.c +++ b/arch/mips/kernel/prom.c @@ -44,11 +44,6 @@ void __init early_init_dt_add_memory_arch(u64 base, u64 size) return add_memory_region(base, size, BOOT_MEM_RAM); } -void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align) -{ - return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS)); -} - int __init early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size, bool nomap) {