From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Glass Date: Fri, 12 May 2017 19:11:13 -0600 Subject: [U-Boot] [PATCH v2 8/9] dm: core: Add ofnode to represent device tree nodes In-Reply-To: References: <20170501151852.26670-1-sjg@chromium.org> <20170501151852.26670-9-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Masahiro, On 10 May 2017 at 20:33, Masahiro Yamada wrote: > 2017-05-02 0:18 GMT+09:00 Simon Glass : > >> diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h >> new file mode 100644 >> index 0000000000..f952c989d2 >> --- /dev/null >> +++ b/include/dm/ofnode.h >> @@ -0,0 +1,100 @@ >> +/* >> + * Copyright (c) 2017 Google, Inc >> + * Written by Simon Glass >> + * >> + * SPDX-License-Identifier: GPL-2.0+ >> + */ >> + >> +#ifndef _DM_OFNODE_H >> +#define _DM_OFNODE_H >> + >> +DECLARE_GLOBAL_DATA_PTR; > > Which line in this header references gd? It is actually needed in dev.h when that is inlined. I originally had to access it here but can move it. Regards, Simon