编译飞凌ok335D开发板内核时出现drivers/mfd/ezx-pcap.c:205:2: error: implicit declaration of function 'irq_to_gpio

来源:互联网 发布:土豆视频mac客户端 编辑:程序博客网 时间:2024/05/16 01:36

编译make zImage时后报错:

 

mfd/ezx-pcap.c: In function 'pcap_isr_work':drivers/mfd/

ezx-pcap.c:205:2: error: implicit declaration of function'irq_to_gpio' [-Werror=implicit-function-declaration]

 

修改:

进入ezx-pcap.c,到第205行:

将} while (gpio_get_value(irq_to_gpio(pcap->spi->irq)));改为} while (gpio_get_value(pdata->gpio));

并找ezx-pcap.h,在struct pcap_platform_data加上int gpio;

原创粉丝点击