From mboxrd@z Thu Jan 1 00:00:00 1970 From: Troy Kisky Date: Fri, 02 Mar 2012 12:37:54 -0700 Subject: [U-Boot] [PATCH 3/3] ARM: Update mach-types In-Reply-To: <4F510740.1080504@nvidia.com> References: <1330636394-25173-1-git-send-email-troy.kisky@boundarydevices.com> <1330636394-25173-3-git-send-email-troy.kisky@boundarydevices.com> <4F4FF02D.1020804@aribaud.net> <4F4FFD1F.4080406@boundarydevices.com> <20120302070045.4B07A14BC60C@gemini.denx.de> <4F510740.1080504@nvidia.com> Message-ID: <4F512192.6000601@boundarydevices.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 3/2/2012 10:45 AM, Stephen Warren wrote: > On 03/02/2012 12:00 AM, Wolfgang Denk wrote: >> Dear Troy Kisky, >> >> In message<4F4FFD1F.4080406@boundarydevices.com> you wrote: >>>> Not sure I understand why we have a "machine_ix_xxx()" here. Could you> >>>> explain? >>>> >>>> Amicalement, >>> Because board/nvidia/seaboard/seaboard.c uses machine_is_ventana but> >>> that machine is no longer >>> in mach-types. >> Then fix the seaboard.c code, please, instead of adding dead code. > I think that should actually be very easy. Can't the following: > > if (machine_is_foo()) { > ... > } > > be converted to: > > #if CONFIG_MACH_TYPE == MACH_TYPE_FOO > ... > #endif > > As a related note, I expect you'll see more and more boards that don't > exist in the kernel's mach-type.h since people won't register machine > IDs for boards that only support device tree. > How about reversing the test #if CONFIG_MACH_TYPE == MACH_TYPE_SEABORD instead of #if CONFIG_MACH_TYPE == MACH_TYPE_VENTANA so that I don't care that ventana is no longer defined? Thanks Troy