From de05497aab22b515ff02988634eab59848410a25 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Mon, 26 Mar 2012 21:47:19 +0200 Subject: i2c: Convert drivers/i2c/muxes/* to use module_i2c_driver() This patch converts the drivers in drivers/i2c/muxes/* to use the module_i2c_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin Acked-by: Wolfram Sang Cc: Guenter Roeck Cc: Michael Lawnick Cc: Ben Dooks Signed-off-by: Jean Delvare --- drivers/i2c/muxes/pca954x.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'drivers/i2c/muxes/pca954x.c') diff --git a/drivers/i2c/muxes/pca954x.c b/drivers/i2c/muxes/pca954x.c index 6f8953664636..0e37ef27aa12 100644 --- a/drivers/i2c/muxes/pca954x.c +++ b/drivers/i2c/muxes/pca954x.c @@ -284,18 +284,7 @@ static struct i2c_driver pca954x_driver = { .id_table = pca954x_id, }; -static int __init pca954x_init(void) -{ - return i2c_add_driver(&pca954x_driver); -} - -static void __exit pca954x_exit(void) -{ - i2c_del_driver(&pca954x_driver); -} - -module_init(pca954x_init); -module_exit(pca954x_exit); +module_i2c_driver(pca954x_driver); MODULE_AUTHOR("Rodolfo Giometti "); MODULE_DESCRIPTION("PCA954x I2C mux/switch driver"); -- cgit v1.2.3-55-g7522