Commit c993e432 authored by Devendra Naga's avatar Devendra Naga Committed by Greg Kroah-Hartman

staging: cptm1217: use module_i2c_driver macro

use the module_i2c_driver and remove the reimplementation of module_i2c_driver
Signed-off-by: default avatarDevendra Naga <devendra.aaru@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1228cd13
...@@ -658,18 +658,7 @@ static struct i2c_driver cp_tm1217_driver = { ...@@ -658,18 +658,7 @@ static struct i2c_driver cp_tm1217_driver = {
.resume = cp_tm1217_resume, .resume = cp_tm1217_resume,
}; };
static int __init clearpad_tm1217_init(void) module_i2c_driver(cp_tm1217_driver);
{
return i2c_add_driver(&cp_tm1217_driver);
}
static void __exit clearpad_tm1217_exit(void)
{
i2c_del_driver(&cp_tm1217_driver);
}
module_init(clearpad_tm1217_init);
module_exit(clearpad_tm1217_exit);
MODULE_AUTHOR("Ramesh Agarwal <ramesh.agarwal@intel.com>"); MODULE_AUTHOR("Ramesh Agarwal <ramesh.agarwal@intel.com>");
MODULE_DESCRIPTION("Synaptics TM1217 TouchScreen Driver"); MODULE_DESCRIPTION("Synaptics TM1217 TouchScreen Driver");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment