diff options
author | Devendra Naga <devendra.aaru@gmail.com> | 2012-08-26 02:35:47 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-04 14:23:33 -0700 |
commit | c993e432edc3b8ce8d3985d8dac3ecba82be86c0 (patch) | |
tree | 1550414c06d08781e03b472ca528eae38cfd294d /drivers/staging/cptm1217 | |
parent | 1228cd13f94cd6eb46904aa5a9883bdde843109a (diff) | |
download | blackbird-obmc-linux-c993e432edc3b8ce8d3985d8dac3ecba82be86c0.tar.gz blackbird-obmc-linux-c993e432edc3b8ce8d3985d8dac3ecba82be86c0.zip |
staging: cptm1217: use module_i2c_driver macro
use the module_i2c_driver and remove the reimplementation of module_i2c_driver
Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/cptm1217')
-rw-r--r-- | drivers/staging/cptm1217/clearpad_tm1217.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/cptm1217/clearpad_tm1217.c b/drivers/staging/cptm1217/clearpad_tm1217.c index 0d924d3a2ab1..a49b0da60049 100644 --- a/drivers/staging/cptm1217/clearpad_tm1217.c +++ b/drivers/staging/cptm1217/clearpad_tm1217.c @@ -658,18 +658,7 @@ static struct i2c_driver cp_tm1217_driver = { .resume = cp_tm1217_resume, }; -static int __init clearpad_tm1217_init(void) -{ - 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_i2c_driver(cp_tm1217_driver); MODULE_AUTHOR("Ramesh Agarwal <ramesh.agarwal@intel.com>"); MODULE_DESCRIPTION("Synaptics TM1217 TouchScreen Driver"); |