From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pw0-f43.google.com (mail-pw0-f43.google.com [209.85.160.43]) by ozlabs.org (Postfix) with ESMTP id 7CDA3B7BEE for ; Fri, 8 Jan 2010 17:42:16 +1100 (EST) Received: by pwj11 with SMTP id 11so13669903pwj.2 for ; Thu, 07 Jan 2010 22:42:14 -0800 (PST) MIME-Version: 1.0 Date: Fri, 8 Jan 2010 12:12:14 +0530 Message-ID: Subject: Any patch for MTD_FSL_UPM_NAND with OF_GPIO From: Koteswar To: linuxppc-dev@lists.ozlabs.org Content-Type: multipart/alternative; boundary=00504502cd68f450a1047ca17cb5 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --00504502cd68f450a1047ca17cb5 Content-Type: text/plain; charset=ISO-8859-1 Hi I am using linux-2.6.26.8 kernel. In drivers/mtd/nand/Kconfig, MTD_NAND_FSL_UPM depends on MTD_NAND && OF_GPIO && (PPC_83xx || PPC_85xx). But I didnt find any way to select OF_GPIO option in "make menuconfig". So I removed it from Kconfig file and got MTD_NAND_FSL_UPM in menuconfig. I selected it and did "make uImage". This is giving few errors: include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep': include/asm-generic/gpio.h:135: error: implicit declaration of function 'gpio_get_value' include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep': include/asm-generic/gpio.h:141: error: implicit declaration of function 'gpio_set_value' In file included from drivers/mtd/nand/fsl_upm.c:21: include/linux/of_gpio.h: At top level: include/linux/of_gpio.h:26: error: field 'gc' has incomplete type include/linux/of_gpio.h: In function 'to_of_gpio_chip': include/linux/of_gpio.h:34: warning: type defaults to 'int' in declaration of '__mptr' include/linux/of_gpio.h:34: warning: initialization from incompatible pointer type drivers/mtd/nand/fsl_upm.c: In function 'fun_probe': drivers/mtd/nand/fsl_upm.c:203: error: implicit declaration of function 'gpio_request' drivers/mtd/nand/fsl_upm.c:208: error: implicit declaration of function 'gpio_direction_input' drivers/mtd/nand/fsl_upm.c:242: error: implicit declaration of function 'gpio_free' make[3]: *** [drivers/mtd/nand/fsl_upm.o] Error 1 make[2]: *** [drivers/mtd/nand] Error 2 make[1]: *** [drivers/mtd] Error 2 make: *** [drivers] Error 2 I am suspection that some gpio lib is missing. So any patch is there to this problem?? Regards Koteswar --00504502cd68f450a1047ca17cb5 Content-Type: text/html; charset=ISO-8859-1 Hi
I am using linux-2.6.26.8 kernel. In drivers/mtd/nand/Kconfig, MTD_NAND_FSL_UPM depends on MTD_NAND && OF_GPIO && (PPC_83xx || PPC_85xx). But I didnt find any way to select OF_GPIO option in "make menuconfig". So I removed it from Kconfig file and got MTD_NAND_FSL_UPM in menuconfig. I selected it and did "make uImage". This is giving few errors:

include/asm-generic/gpio.h: In function 'gpio_get_value_cansleep':
include/asm-generic/gpio.h:135: error: implicit declaration of function 'gpio_get_value'
include/asm-generic/gpio.h: In function 'gpio_set_value_cansleep':
include/asm-generic/gpio.h:141: error: implicit declaration of function 'gpio_set_value'
In file included from drivers/mtd/nand/fsl_upm.c:21:
include/linux/of_gpio.h: At top level:
include/linux/of_gpio.h:26: error: field 'gc' has incomplete type
include/linux/of_gpio.h: In function 'to_of_gpio_chip':
include/linux/of_gpio.h:34: warning: type defaults to 'int' in declaration of '__mptr'
include/linux/of_gpio.h:34: warning: initialization from incompatible pointer type
drivers/mtd/nand/fsl_upm.c: In function 'fun_probe':
drivers/mtd/nand/fsl_upm.c:203: error: implicit declaration of function 'gpio_request'
drivers/mtd/nand/fsl_upm.c:208: error: implicit declaration of function 'gpio_direction_input'
drivers/mtd/nand/fsl_upm.c:242: error: implicit declaration of function 'gpio_free'
make[3]: *** [drivers/mtd/nand/fsl_upm.o] Error 1
make[2]: *** [drivers/mtd/nand] Error 2
make[1]: *** [drivers/mtd] Error 2
make: *** [drivers] Error 2

I am suspection that some gpio lib is missing. So any patch is there to this problem??
Regards
Koteswar

--00504502cd68f450a1047ca17cb5--