From patchwork Fri May 1 05:02:18 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gavin Shan X-Patchwork-Id: 466811 X-Patchwork-Delegate: benh@kernel.crashing.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id A9851140320 for ; Fri, 1 May 2015 15:04:07 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 6FF291A0DC7 for ; Fri, 1 May 2015 15:04:07 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from e23smtp08.au.ibm.com (e23smtp08.au.ibm.com [202.81.31.141]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 36CA51A0E0E for ; Fri, 1 May 2015 15:03:54 +1000 (AEST) Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 May 2015 15:03:53 +1000 Received: from d23dlp01.au.ibm.com (202.81.31.203) by e23smtp08.au.ibm.com (202.81.31.205) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 1 May 2015 15:03:51 +1000 Received: from d23relay09.au.ibm.com (d23relay09.au.ibm.com [9.185.63.181]) by d23dlp01.au.ibm.com (Postfix) with ESMTP id 5BF962CE8050 for ; Fri, 1 May 2015 15:03:51 +1000 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay09.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t4153hdT38928394 for ; Fri, 1 May 2015 15:03:51 +1000 Received: from d23av04.au.ibm.com (localhost [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t4153Hn2011819 for ; Fri, 1 May 2015 15:03:17 +1000 Received: from ozlabs.au.ibm.com (ozlabs.au.ibm.com [9.192.253.14]) by d23av04.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id t4153HNc011235; Fri, 1 May 2015 15:03:17 +1000 Received: from bran.ozlabs.ibm.com (haven.au.ibm.com [9.192.253.15]) by ozlabs.au.ibm.com (Postfix) with ESMTP id 6E0FBA0384; Fri, 1 May 2015 15:02:33 +1000 (AEST) Received: from gwshan (shangw.ozlabs.ibm.com [10.61.2.199]) by bran.ozlabs.ibm.com (Postfix) with ESMTP id 8A28616AA07; Fri, 1 May 2015 15:02:32 +1000 (AEST) Received: by gwshan (Postfix, from userid 1000) id 44136941EEF; Fri, 1 May 2015 15:02:32 +1000 (AEST) From: Gavin Shan To: skiboot@lists.ozlabs.org Date: Fri, 1 May 2015 15:02:18 +1000 Message-Id: <1430456549-21090-6-git-send-email-gwshan@linux.vnet.ibm.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1430456549-21090-1-git-send-email-gwshan@linux.vnet.ibm.com> References: <1430456549-21090-1-git-send-email-gwshan@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15050105-0029-0000-0000-0000017BA092 Subject: [Skiboot] [PATCH v6 05/16] include: Remove device_tree.h X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" None of the functions declared in it are global. It's useless and remove it. Signed-off-by: Gavin Shan --- core/init.c | 1 - hdata/fsp.c | 1 - hdata/memory.c | 1 - include/device_tree.h | 30 ------------------------------ 4 files changed, 33 deletions(-) delete mode 100644 include/device_tree.h diff --git a/core/init.c b/core/init.c index 2836ae3..d0bea2a 100644 --- a/core/init.c +++ b/core/init.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include #include diff --git a/hdata/fsp.c b/hdata/fsp.c index 15cc611..9174f97 100644 --- a/hdata/fsp.c +++ b/hdata/fsp.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include "hdata.h" diff --git a/hdata/memory.c b/hdata/memory.c index 18beb3b..282fc5b 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -15,7 +15,6 @@ */ #include -#include #include #include #include diff --git a/include/device_tree.h b/include/device_tree.h deleted file mode 100644 index a32821c..0000000 --- a/include/device_tree.h +++ /dev/null @@ -1,30 +0,0 @@ -/* Copyright 2013-2014 IBM Corp. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef __DEVICE_TREE_H -#define __DEVICE_TREE_H -#include - -/* Helpers to cache errors in fdt; use this instead of fdt_* */ -uint32_t dt_begin_node(const char *name); /* returns phandle */ -void dt_property_string(const char *name, const char *value); -void dt_property_cell(const char *name, u32 cell); -void dt_property_cells(const char *name, int count, ...); -void dt_property(const char *name, const void *val, size_t size); -void dt_end_node(void); - - -#endif /* __DEVICE_TREE_H */