diff options
Diffstat (limited to 'drivers/misc/hmc6352.c')
-rw-r--r-- | drivers/misc/hmc6352.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/misc/hmc6352.c b/drivers/misc/hmc6352.c index ca938fc8a8d6..423cd40f1c0f 100644 --- a/drivers/misc/hmc6352.c +++ b/drivers/misc/hmc6352.c | |||
@@ -148,18 +148,7 @@ static struct i2c_driver hmc6352_driver = { | |||
148 | .id_table = hmc6352_id, | 148 | .id_table = hmc6352_id, |
149 | }; | 149 | }; |
150 | 150 | ||
151 | static int __init sensor_hmc6352_init(void) | 151 | module_i2c_driver(hmc6352_driver); |
152 | { | ||
153 | return i2c_add_driver(&hmc6352_driver); | ||
154 | } | ||
155 | |||
156 | static void __exit sensor_hmc6352_exit(void) | ||
157 | { | ||
158 | i2c_del_driver(&hmc6352_driver); | ||
159 | } | ||
160 | |||
161 | module_init(sensor_hmc6352_init); | ||
162 | module_exit(sensor_hmc6352_exit); | ||
163 | 152 | ||
164 | MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com"); | 153 | MODULE_AUTHOR("Kalhan Trisal <kalhan.trisal@intel.com"); |
165 | MODULE_DESCRIPTION("hmc6352 Compass Driver"); | 154 | MODULE_DESCRIPTION("hmc6352 Compass Driver"); |