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

时间:2021-09-18 09:12:01

编译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;