Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752298AbbEPN7i (ORCPT ); Sat, 16 May 2015 09:59:38 -0400 Received: from lb1-smtp-cloud2.xs4all.net ([194.109.24.21]:47584 "EHLO lb1-smtp-cloud2.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751170AbbEPN7f (ORCPT ); Sat, 16 May 2015 09:59:35 -0400 Message-ID: <1431784767.2341.28.camel@x220> Subject: Re: [PATCH] gpio: add ETRAXFS GPIO driver From: Paul Bolle To: Rabin Vincent Cc: linus.walleij@linaro.org, gnurou@gmail.com, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Date: Sat, 16 May 2015 15:59:27 +0200 In-Reply-To: <1431728843-21583-1-git-send-email-rabin@rab.in> References: <1431728843-21583-1-git-send-email-rabin@rab.in> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1288 Lines: 45 On Sat, 2015-05-16 at 00:27 +0200, Rabin Vincent wrote: > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > +config GPIO_ETRAXFS > + bool "Axis ETRAX FS General I/O" > + depends on CRIS || COMPILE_TEST > + depends on OF > + select GPIO_GENERIC > + help > + Say yes here to support the GPIO controller on Axis ETRAX FS SoCs. > --- a/drivers/gpio/Makefile > +++ b/drivers/gpio/Makefile > +obj-$(CONFIG_GPIO_ETRAXFS) += gpio-etraxfs.o GPIO_ETRAXFS is a bool symbol, so gpio-etraxfs.o can only be built-in, right? > --- /dev/null > +++ b/drivers/gpio/gpio-etraxfs.c > +MODULE_DEVICE_TABLE(of, etraxfs_gpio_of_table); > +module_platform_driver(etraxfs_gpio_driver); (A patch was submitted that would allow built-in only code to use builtin_platform_driver(), see https://lkml.org/lkml/2015/5/10/125 .) > +MODULE_DESCRIPTION("ETRAX FS GPIO driver"); > +MODULE_LICENSE("GPL"); But the code this patch adds contains a bit of module specific boilerplate. Was it perhaps your intention to make GPIO_ETRAXFS tristate? Paul Bolle -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/