Hi<br>
I am using linux-2.6.26.8 kernel. In drivers/mtd/nand/Kconfig,
MTD_NAND_FSL_UPM depends on MTD_NAND &amp;&amp; OF_GPIO &amp;&amp;
(PPC_83xx || PPC_85xx). But I didnt find any way to select OF_GPIO
option in &quot;make menuconfig&quot;. So I removed it from Kconfig file and got
MTD_NAND_FSL_UPM in menuconfig. I selected it and did &quot;make uImage&quot;.
This is giving few errors:<br>
<br>
include/asm-generic/gpio.h: In function &#39;gpio_get_value_cansleep&#39;:<br>
include/asm-generic/gpio.h:135: error: implicit declaration of function &#39;gpio_get_value&#39;<br>
include/asm-generic/gpio.h: In function &#39;gpio_set_value_cansleep&#39;:<br>
include/asm-generic/gpio.h:141: error: implicit declaration of function &#39;gpio_set_value&#39;<br>
In file included from drivers/mtd/nand/fsl_upm.c:21:<br>
include/linux/of_gpio.h: At top level:<br>
include/linux/of_gpio.h:26: error: field &#39;gc&#39; has incomplete type<br>
include/linux/of_gpio.h: In function &#39;to_of_gpio_chip&#39;:<br>
include/linux/of_gpio.h:34: warning: type defaults to &#39;int&#39; in declaration of &#39;__mptr&#39;<br>
include/linux/of_gpio.h:34: warning: initialization from incompatible pointer type<br>
drivers/mtd/nand/fsl_upm.c: In function &#39;fun_probe&#39;:<br>
drivers/mtd/nand/fsl_upm.c:203: error: implicit declaration of function &#39;gpio_request&#39;<br>
drivers/mtd/nand/fsl_upm.c:208: error: implicit declaration of function &#39;gpio_direction_input&#39;<br>
drivers/mtd/nand/fsl_upm.c:242: error: implicit declaration of function &#39;gpio_free&#39;<br>
make[3]: *** [drivers/mtd/nand/fsl_upm.o] Error 1<br>
make[2]: *** [drivers/mtd/nand] Error 2<br>
make[1]: *** [drivers/mtd] Error 2<br>
make: *** [drivers] Error 2<br>
<br>
I am suspection that some gpio lib is missing. So any patch is there to this problem??<br>
Regards<br>
Koteswar<br>
<br>