aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/bh1780gli.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/bh1780gli.c')
-rw-r--r--drivers/misc/bh1780gli.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/misc/bh1780gli.c b/drivers/misc/bh1780gli.c
index bfeea9ba702e..54f6f39f990a 100644
--- a/drivers/misc/bh1780gli.c
+++ b/drivers/misc/bh1780gli.c
@@ -253,21 +253,10 @@ static struct i2c_driver bh1780_driver = {
253 .driver = { 253 .driver = {
254 .name = "bh1780", 254 .name = "bh1780",
255 .pm = BH1780_PMOPS, 255 .pm = BH1780_PMOPS,
256}, 256 },
257}; 257};
258 258
259static int __init bh1780_init(void) 259module_i2c_driver(bh1780_driver);
260{
261 return i2c_add_driver(&bh1780_driver);
262}
263
264static void __exit bh1780_exit(void)
265{
266 i2c_del_driver(&bh1780_driver);
267}
268
269module_init(bh1780_init)
270module_exit(bh1780_exit)
271 260
272MODULE_DESCRIPTION("BH1780GLI Ambient Light Sensor Driver"); 261MODULE_DESCRIPTION("BH1780GLI Ambient Light Sensor Driver");
273MODULE_LICENSE("GPL"); 262MODULE_LICENSE("GPL");