misc: use module_spi_driver
authorDevendra Naga <develkernel412222@gmail.com>
Thu, 23 Aug 2012 08:53:09 +0000 (14:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2012 21:10:29 +0000 (14:10 -0700)
commit9c8dc10f487dde5b114a53c73a36b3bc4459e213
treeb1279e921a194ce5798f7b230e72dcd34ea4843a
parent7e0b2cde502a7ea471ae7202ad88efdd7eaf3dbd
misc: use module_spi_driver

The _init and _exit functions can be replaced with the module_spi_driver
macro, which actually implements

static int __init drv_init(void)
{
spi_register_driver(&driv_op);
return 0;
}

module_init(drv_init);

static void __exit drv_exit(void)
{
spi_unregister_driver(&driv_op);
}

module_exit(drv_exit);

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/bmp085-spi.c