i2c/gpio-i2cmux: Convert to use module_platform_driver()
Convert gpio-i2cmux to use the module_platform_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Peter Korsgaard <peter.korsgaard@barco.com> Signed-off-by: Jean Delvare <khali@linux-fr.org>
This commit is contained in:
parent
a3664b51c7
commit
245e99cfe8
1 changed files with 1 additions and 12 deletions
|
@ -165,18 +165,7 @@ static struct platform_driver gpiomux_driver = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init gpiomux_init(void)
|
module_platform_driver(gpiomux_driver);
|
||||||
{
|
|
||||||
return platform_driver_register(&gpiomux_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __exit gpiomux_exit(void)
|
|
||||||
{
|
|
||||||
platform_driver_unregister(&gpiomux_driver);
|
|
||||||
}
|
|
||||||
|
|
||||||
module_init(gpiomux_init);
|
|
||||||
module_exit(gpiomux_exit);
|
|
||||||
|
|
||||||
MODULE_DESCRIPTION("GPIO-based I2C multiplexer driver");
|
MODULE_DESCRIPTION("GPIO-based I2C multiplexer driver");
|
||||||
MODULE_AUTHOR("Peter Korsgaard <peter.korsgaard@barco.com>");
|
MODULE_AUTHOR("Peter Korsgaard <peter.korsgaard@barco.com>");
|
||||||
|
|
Loading…
Reference in a new issue