diff options
author | Devendra Naga <[email protected]> | 2012-08-23 14:23:09 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2012-09-05 14:10:29 -0700 |
commit | 9c8dc10f487dde5b114a53c73a36b3bc4459e213 (patch) | |
tree | b1279e921a194ce5798f7b230e72dcd34ea4843a /net/unix/sysctl_net_unix.c | |
parent | 7e0b2cde502a7ea471ae7202ad88efdd7eaf3dbd (diff) |
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 <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions