Staging: most: Use module_i2c_driver
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 29 Sep 2015 05:44:42 +0000 (11:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 13:20:35 +0000 (15:20 +0200)
commit5bd28f0701ca989629bfeae86e5167b54804bb60
treed6a90c72d128c7589dbd4101f0cb0085cdfdfe42
parent02ab79c80bc4ba5288e84d717ec4f6dc0030c90f
Staging: most: Use module_i2c_driver

Macro module_i2c_driver is used for drivers whose init
and exit paths does only register and unregister to i2c
API. Remove some boilerplate code by using module_i2c_driver.

Problem found using Coccinelle.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/hdm-i2c/hdm_i2c.c