大神帮我看下,下面的驱动
为什么就是不能加载probe函数
执行完__init fts_ts_init就完了,,,,,,,,,
static const struct i2c_device_id fts_ts_id[] = {
{ FTS_NAME, 0 },
{ }
};
/*MODULE_DEVICE_TABLE(i2c, fts_ts_id);*/
static struct i2c_driver fts_ts_driver = {
.probe = fts_ts_probe,
.remove = fts_ts_remove,
.id_table = fts_ts_id,
.driver = {
.name = FTS_NAME,
.owner = THIS_MODULE,
},
};
/************************************************************************
* Name: fts_ts_init
* Brief: add driver info
* Input: no
* Output: no
* Return: fail <0
***********************************************************************/
static int __init fts_ts_init(void)
{
int ret;
printk("[Focal][Touch] fts_ts_init !\n");
ret = i2c_add_driver(&fts_ts_driver);
if (ret)
{
printk(KERN_WARNING "Adding focaltech driver failed "
"(errno = %d)\n", ret);
}
else
{
pr_info("Successfully added driver %s\n",fts_ts_driver.driver.name);
}
return ret;
} |