RobertCNelson / bb-kernel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when building ti_davinci_mdio as module

unmanagedneet opened this issue · comments

Hello,
I'am working on 4.1.18.
Firstly, I've tried the default kernel setting, and it was successfully built.
Then, I want to build TI's Ethernet driver "TI DaVinci MDIO" as a module by setting it's flag to {M}, but meets some errors in building.
It says:
ERROR: "of_update_property" [drivers/net/ethernet/ti/davinci_mdio.ko] undefined!
By checking those source files, I find out this function was declared in "KERNEL/include/linux/of.h" and implemented in "KERNEL/drivers/of/base.c".
I'm not familiar with kernel module programming, but "of.h" was included by "davinci_mdio.c", why there is a undefined Errors?
It maybe a noob question, but really confuse me a lot of time.

Solued...
Just add a line "EXPORT_SYMBOL_GPL(of_update_property);" into "base.c", and everything will be OK.