From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH 1/1] gpio/omap: fix build error when OF_GPIO is not defined. Date: Tue, 02 Jul 2013 13:48:49 -0700 Message-ID: <87d2r0lmby.fsf@linaro.org> References: <1372794390-9512-1-git-send-email-javier.martinez@collabora.co.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from mail-pd0-f173.google.com ([209.85.192.173]:41443 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755086Ab3GBUsz (ORCPT ); Tue, 2 Jul 2013 16:48:55 -0400 Received: by mail-pd0-f173.google.com with SMTP id v14so3935353pde.32 for ; Tue, 02 Jul 2013 13:48:54 -0700 (PDT) In-Reply-To: (Linus Walleij's message of "Tue, 2 Jul 2013 22:15:37 +0200") Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Linus Walleij Cc: Javier Martinez Canillas , Grant Likely , Jon Hunter , Santosh Shilimkar , Tony Lindgren , Jean-Christophe PLAGNIOL-VILLARD , Enric Balletbo Serra , Linux-OMAP , Florian Vaussard , Aaro Koskinen Linus Walleij writes: > On Tue, Jul 2, 2013 at 9:46 PM, Javier Martinez Canillas > wrote: > >> The OMAP GPIO driver check if the chip has an associated >> Device Tree node using the struct gpio_chip of_node member. >> >> But this is only build if CONFIG_OF_GPIO is defined which >> leads to the following error when using omap1_defconfig: >> >> linux/drivers/gpio/gpio-omap.c: In function 'omap_gpio_chip_init': >> linux/drivers/gpio/gpio-omap.c:1080:17: error: 'struct gpio_chip' has no member named 'of_node' >> linux/drivers/gpio/gpio-omap.c: In function 'omap_gpio_irq_map': >> linux/drivers/gpio/gpio-omap.c:1116:16: error: 'struct gpio_chip' has no member named 'of_node' >> >> Reported-by: Kevin Hilman >> Signed-off-by: Javier Martinez Canillas >> --- >> >> Hi Linus, >> >> Sorry for not spoting this issue before. In a previous version of the patch-set: >> >> [PATCH v3 0/2]: auto request GPIO as input if used as IRQ via DT >> >> of_have_populated_dt() was used instead of struct gpio_chip of_node member to >> check wether legacy or DT boot was used. I did a build test on every OMAP platform >> but later I was asked to use .of_node instead of_have_populated_dt() and forget >> to do a built test for OMAP1. > > Such things happen ... > >> I hope this patch can go as a fix for the v3.11-rc cycle. > > Yeah I queued it on top of the others. Good thing I didn't rush the > other two out :-) I can confirm this makes the build work again for omap1_defconfig. Javier, thanks for the quick fix! Acked-by: Kevin Hilman Kevin