I have problem concerning about my module it it installed/initialized correctly but the other parts of the driver is not installed or showing up in the output.
static struct i2c_driver qt2120_dev {
.probe = qt2120_probe,
.remove = qt2120_remove,
.owner = {
.name = qt2120,
.module = THIS_MODULE,
}
....
}
static __init qt2120_init(){
prink("********init******");
.......
}
module_init(qt2120_init)
static int qt2120_probe(){
prink("********probe******");
.......
}
static __devinit qt2120_remove(){
prink("********probe******");
.......
}
Only "/**init*" appeared in the output. The module has been installed to the i2c according to the output.
"bus: i2c. qt2120 as qt2120/input"
Something is wrong with module because the printk's in probe and remove never at all.
I also changed in the MAKEFILE @CONFIG_AT2120 += qt2160.o with qt2120.o as the module
Is there something wrong with my configuration? qt2120.c is very similar to qt2160.c in code aurora.
prink
is not valid, so maybe your latest compile attempt failed and you actually installed an earlier version. And no, you should not have changed .o to .c in the Makefile either. – Chris Stratton