From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755961Ab2CHKDg (ORCPT ); Thu, 8 Mar 2012 05:03:36 -0500 Received: from smtp-out-087.synserver.de ([212.40.185.87]:1111 "EHLO smtp-out-087.synserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751949Ab2CHKDe (ORCPT ); Thu, 8 Mar 2012 05:03:34 -0500 X-SynServer-TrustedSrc: 1 X-SynServer-AuthUser: lars@metafoo.de X-SynServer-PPID: 18297 From: Lars-Peter Clausen To: Michal Simek Cc: michal.simek@petalogix.com, microblaze-uclinux@itee.uq.edu.au, linux-kernel@vger.kernel.org, Lars-Peter Clausen Subject: [PATCH resend] microblaze: Do not select GENERIC_GPIO by default Date: Thu, 8 Mar 2012 11:05:33 +0100 Message-Id: <1331201133-17327-1-git-send-email-lars@metafoo.de> X-Mailer: git-send-email 1.7.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: stable@vger.kernel.org Signed-off-by: Lars-Peter Clausen --- arch/microblaze/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/microblaze/Kconfig b/arch/microblaze/Kconfig index e446bab..a93ed04 100644 --- a/arch/microblaze/Kconfig +++ b/arch/microblaze/Kconfig @@ -46,7 +46,7 @@ config GENERIC_CLOCKEVENTS def_bool y config GENERIC_GPIO - def_bool y + bool config GENERIC_CSUM def_bool y -- 1.7.9.1