On Thursday 23 August 2012, Devendra Naga wrote:
> 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);
>
>
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_o
2 matches
Mail list logo