I have a custom board based on imx6ulevk and I have PN7150 NFC on custom board. I have compiled it's driver following this page NFC PN7120 on the i.MX6Q . But when I try to load the driver using insmod command I have received following error :--
pn5xx_i2c: disagrees about version of symbol dev_warn
pn5xx_i2c: Unknown symbol dev_warn (err -22)
pn5xx_i2c: disagrees about version of symbol dev_err
pn5xx_i2c: Unknown symbol dev_err (err -22)
insmod: ERROR: could not insert module pn5xx_i2c.ko: Invalid parameters
I have downloaded driver from this link GitHub - NXPNFCLinux/nxp-pn5xx: NXP's NFC Open Source Kernel mode driver .
I am using Yocto and my kernel version is Linux imx6ulevk 4.1.15-1.1.1+gd5d7c02. Please guide how to build drivers for my custom board.