]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: palmas: fix implicit assumption module.h is present
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 12 Sep 2016 22:16:24 +0000 (18:16 -0400)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 15 Sep 2016 11:57:43 +0000 (13:57 +0200)
commit1706db11a25dd0324c5667d160f9a5fd0773f4fb
treec656b77aab3a330335fc4e095791e2c6b3747135
parentc846f39765fd21fb650775a75bd76efca02eaac9
gpio: palmas: fix implicit assumption module.h is present

This file is currently getting module.h from a global gpio header
and it will fail to build once we remove module.h from that.

However, the driver is controlled with the following Kconfig:

drivers/gpio/Kconfig:config GPIO_PALMAS
drivers/gpio/Kconfig:   bool "TI PALMAS series PMICs GPIO"

and hence the line of MODULE_DEVICE_TABLE is a no-op that can simply
be deleted.  In fact it should have been removed in an earlier commit
that did demodularization, however the unseen include prevented my
build testing from detecting it.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: linux-gpio@vger.kernel.org
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-palmas.c