Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e55c073 authored by William Breathitt Gray's avatar William Breathitt Gray Committed by Wolfram Sang
Browse files

i2c: elektor: Utilize the module_isa_driver macro



This driver does not do anything special in module init/exit. This patch
eliminates the module init/exit boilerplate code by utilizing the
module_isa_driver macro.

Signed-off-by: default avatarWilliam Breathitt Gray <vilhelm.gray@gmail.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 45bc35ef
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -319,16 +319,6 @@ static struct isa_driver i2c_elektor_driver = {
	},
};

static int __init i2c_pcfisa_init(void)
{
	return isa_register_driver(&i2c_elektor_driver, 1);
}

static void __exit i2c_pcfisa_exit(void)
{
	isa_unregister_driver(&i2c_elektor_driver);
}

MODULE_AUTHOR("Hans Berglund <hb@spacetec.no>");
MODULE_DESCRIPTION("I2C-Bus adapter routines for PCF8584 ISA bus adapter");
MODULE_LICENSE("GPL");
@@ -338,6 +328,4 @@ module_param(irq, int, 0);
module_param(clock, int, 0);
module_param(own, int, 0);
module_param(mmapped, int, 0);

module_init(i2c_pcfisa_init);
module_exit(i2c_pcfisa_exit);
module_isa_driver(i2c_elektor_driver, 1);