From patchwork Fri Aug 16 21:05:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 19260 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 68712248E6 for ; Fri, 16 Aug 2013 21:06:27 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id hf12sf2808914vcb.11 for ; Fri, 16 Aug 2013 14:06:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=bqkdtmCdj94yWsiVOTdIafeS5CKJbnY5ym6DZ/DNJYk=; b=I8PCv+AxpRK4z/ueSKlPMdkdDtO1HtqNzJir2K+05FjWhvz9XQZUTbcjL02ORibCW9 jmqAa4/XTzwLdALUV7/ftS/PkF9UePIGYwGCgujdHynmsK6gaZm1YG/hBipq/rE6K0te Nw/qJS0oEJXyhInRUwU3ZrsUkuBr4tygU/NSiuGjRkAGP6L45CXbSWk2s4np23cFQbTy DgBGqdVRs46341cVl/nzvCyTngnJI0R9tOOiQy4OOGEoFrPxXfixjh/LQtXvQF3Axg2w oL1PjlcfQlde2aH2cogbJA+kLLhsdYpCR5UiNnkP+31fTHfFkY8DhLdMD+vz6vMEkWJC 9eyA== X-Received: by 10.236.2.5 with SMTP id 5mr1261197yhe.23.1376687186972; Fri, 16 Aug 2013 14:06:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.130.196 with SMTP id og4ls848607qeb.69.gmail; Fri, 16 Aug 2013 14:06:26 -0700 (PDT) X-Received: by 10.58.97.138 with SMTP id ea10mr13380veb.38.1376687186877; Fri, 16 Aug 2013 14:06:26 -0700 (PDT) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by mx.google.com with ESMTPS id f8si786907vec.9.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:26 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.175; Received: by mail-ve0-f175.google.com with SMTP id oy10so1661492veb.20 for ; Fri, 16 Aug 2013 14:06:26 -0700 (PDT) X-Gm-Message-State: ALoCoQktNnqZjJuB6PAtAI1VhzB2lp89N0sIw+uaAT8YUt36t+UlNfY6Qsb42wrkDSV5tEunYs4Y X-Received: by 10.58.230.135 with SMTP id sy7mr15097vec.42.1376687186781; Fri, 16 Aug 2013 14:06:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp89456vcz; Fri, 16 Aug 2013 14:06:26 -0700 (PDT) X-Received: by 10.180.77.163 with SMTP id t3mr613346wiw.24.1376687185882; Fri, 16 Aug 2013 14:06:25 -0700 (PDT) Received: from mail-wg0-f47.google.com (mail-wg0-f47.google.com [74.125.82.47]) by mx.google.com with ESMTPS id pf5si1300186wjb.13.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:25 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.47 is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=74.125.82.47; Received: by mail-wg0-f47.google.com with SMTP id j13so1877667wgh.2 for ; Fri, 16 Aug 2013 14:06:25 -0700 (PDT) X-Received: by 10.194.121.65 with SMTP id li1mr2638610wjb.24.1376687185478; Fri, 16 Aug 2013 14:06:25 -0700 (PDT) Received: from belegaer.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id b13sm797327wic.9.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 16 Aug 2013 14:06:24 -0700 (PDT) From: Julien Grall To: stefano.stabellini@eu.citrix.com, ian.campbell@citrix.com Cc: patches@linaro.org, andre.przywara@linaro.org, xen-devel@lists.xen.org, Julien Grall Subject: [RFC 12/24] xen/dts: Remove device_get_reg call in process_multiboot_node Date: Fri, 16 Aug 2013 22:05:44 +0100 Message-Id: <1376687156-6737-13-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> References: <1376687156-6737-1-git-send-email-julien.grall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.128.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The function device_get_reg will be removed in a future patch. Signed-off-by: Julien Grall --- xen/common/device_tree.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/common/device_tree.c b/xen/common/device_tree.c index 433fa37..8a5bfc3 100644 --- a/xen/common/device_tree.c +++ b/xen/common/device_tree.c @@ -447,7 +447,7 @@ static void __init process_multiboot_node(const void *fdt, int node, u32 address_cells, u32 size_cells) { const struct fdt_property *prop; - const u32 *cell; + const __be32 *cell; int nr; struct dt_mb_module *mod; int len; @@ -465,9 +465,9 @@ static void __init process_multiboot_node(const void *fdt, int node, if ( !prop ) early_panic("node %s missing `reg' property\n", name); - cell = (const u32 *)prop->data; - device_tree_get_reg(&cell, address_cells, size_cells, - &mod->start, &mod->size); + cell = (const __be32 *)prop->data; + mod->start = dt_next_cell(address_cells, &cell); + mod->size = dt_next_cell(size_cells, &cell); prop = fdt_get_property(fdt, node, "bootargs", &len); if ( prop )