Skip to content

Commit

Permalink
ssb: SSB_DRIVER_GPIO should depend on GPIOLIB instead of selecting it
Browse files Browse the repository at this point in the history
Commit ec43b08 ("ssb: add GPIO driver")
added SSB_DRIVER_GPIO, which unconditionally selects GPIOLIB, causing
a Kconfig warning:

warning: (ARCH_REQUIRE_GPIOLIB && SSB_DRIVER_GPIO && BCMA_DRIVER_GPIO && MFD_TC6393XB && FB_VIA) selects GPIOLIB which has unmet direct dependencies (ARCH_WANT_OPTIONAL_GPIOLIB || ARCH_REQUIRE_GPIOLIB)

and build failure for m68k/allmodconfig:

In file included from drivers/ssb/ssb_private.h:5,
                 from drivers/ssb/main.c:12:
include/linux/ssb/ssb.h:440: error: field ‘gpio’ has incomplete type
make[4]: *** [drivers/ssb/main.o] Error 1
make[3]: *** [drivers/ssb/] Error 2

Turn the select into a dependency to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Geert Uytterhoeven authored and John W. Linville committed Jan 2, 2013
1 parent a733311 commit 3194f2f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/ssb/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ config SSB_DRIVER_GIGE

config SSB_DRIVER_GPIO
bool "SSB GPIO driver"
depends on SSB
select GPIOLIB
depends on SSB && GPIOLIB
help
Driver to provide access to the GPIO pins on the bus.

Expand Down

0 comments on commit 3194f2f

Please sign in to comment.