Hi, thank you for the patch! For the future, please send such fixes to vanilla like I've done it now and add me in Cc.
With best regards, Alex 2012/8/23 Devendra Naga <develkernel412...@gmail.com>: > the code under _init and _exit functions is similar to the > code of module_spi_driver macro, which is a wrapper to the module_driver > macro, > so use it instead. > > Signed-off-by: Devendra Naga <develkernel412...@gmail.com> > --- > drivers/ieee802154/at86rf230.c | 12 +----------- > 1 file changed, 1 insertion(+), 11 deletions(-) > > diff --git a/drivers/ieee802154/at86rf230.c b/drivers/ieee802154/at86rf230.c > index 5d30940..ba753d8 100644 > --- a/drivers/ieee802154/at86rf230.c > +++ b/drivers/ieee802154/at86rf230.c > @@ -952,17 +952,7 @@ static struct spi_driver at86rf230_driver = { > .resume = at86rf230_resume, > }; > > -static int __init at86rf230_init(void) > -{ > - return spi_register_driver(&at86rf230_driver); > -} > -module_init(at86rf230_init); > - > -static void __exit at86rf230_exit(void) > -{ > - spi_unregister_driver(&at86rf230_driver); > -} > -module_exit(at86rf230_exit); > +module_spi_driver(at86rf230_driver); > > MODULE_DESCRIPTION("AT86RF230 Transceiver Driver"); > MODULE_LICENSE("GPL v2"); > -- > 1.7.9.5 > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Linux-zigbee-devel mailing list Linux-zigbee-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel