Skip to content

Commit

Permalink
microblaze: Do not select GENERIC_GPIO by default
Browse files Browse the repository at this point in the history
The microblaze architecture does not provide a native GPIO API implementation
nor requires GPIOLIB, but still selects GENERIC_GPIO by default. As a result the
following build error occurs, if GPIOLIB is not selected:

	include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep':
	include/asm-generic/gpio.h:218: error: implicit declaration of function '__gpio_get_value'
	include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep':
	include/asm-generic/gpio.h:224: error: implicit declaration of function '__gpio_set_value'

This patch addresses the issue by not selecting GENERIC_GPIO by default. This
causes the GPIO API to be stubbed out if no implementation is provided.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: stable@vger.kernel.org
Tested-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Lars-Peter Clausen authored and Michal Simek committed May 25, 2012
1 parent 76e10d1 commit 59516b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/microblaze/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ config GENERIC_CLOCKEVENTS
def_bool y

config GENERIC_GPIO
def_bool y
bool

config GENERIC_CSUM
def_bool y
Expand Down

0 comments on commit 59516b0

Please sign in to comment.