MISC: convert drivers/misc/* to use module_spi_driver()
This patch converts the drivers in drivers/misc/* to use the module_spi_driver() macro which makes the code smaller and a bit simpler. Signed-off-by: Axel Lin <axel.lin@gmail.com> Cc: Michael Hennerich <hennerich@blackfin.uclinux.org> Cc: Anatolij Gustschin <agust@denx.de> Cc: Daniel Mack <zonque@gmail.com> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
a64fe2ed76
commit
a3dc3c9eb0
@@ -135,17 +135,7 @@ static struct spi_driver ad_dpot_spi_driver = {
|
||||
.id_table = ad_dpot_spi_id,
|
||||
};
|
||||
|
||||
static int __init ad_dpot_spi_init(void)
|
||||
{
|
||||
return spi_register_driver(&ad_dpot_spi_driver);
|
||||
}
|
||||
module_init(ad_dpot_spi_init);
|
||||
|
||||
static void __exit ad_dpot_spi_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&ad_dpot_spi_driver);
|
||||
}
|
||||
module_exit(ad_dpot_spi_exit);
|
||||
module_spi_driver(ad_dpot_spi_driver);
|
||||
|
||||
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
|
||||
MODULE_DESCRIPTION("digital potentiometer SPI bus driver");
|
||||
|
Reference in New Issue
Block a user