mrf24j40.c (aecdc33e111b2c447b622e287c6003726daa1426) mrf24j40.c (916082b073ebb7f4e064cebce0768e34cacde508)
1/*
2 * Driver for Microchip MRF24J40 802.15.4 Wireless-PAN Networking controller
3 *
4 * Copyright (C) 2012 Alan Ott <alan@signal11.us>
5 * Signal 11 Software
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 704 unchanged lines hidden (view full) ---

713
714static int __devexit mrf24j40_remove(struct spi_device *spi)
715{
716 struct mrf24j40 *devrec = dev_get_drvdata(&spi->dev);
717
718 dev_dbg(printdev(devrec), "remove\n");
719
720 free_irq(spi->irq, devrec);
1/*
2 * Driver for Microchip MRF24J40 802.15.4 Wireless-PAN Networking controller
3 *
4 * Copyright (C) 2012 Alan Ott <alan@signal11.us>
5 * Signal 11 Software
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 704 unchanged lines hidden (view full) ---

713
714static int __devexit mrf24j40_remove(struct spi_device *spi)
715{
716 struct mrf24j40 *devrec = dev_get_drvdata(&spi->dev);
717
718 dev_dbg(printdev(devrec), "remove\n");
719
720 free_irq(spi->irq, devrec);
721 flush_work_sync(&devrec->irqwork); /* TODO: Is this the right call? */
721 flush_work(&devrec->irqwork); /* TODO: Is this the right call? */
722 ieee802154_unregister_device(devrec->dev);
723 ieee802154_free_device(devrec->dev);
724 /* TODO: Will ieee802154_free_device() wait until ->xmit() is
725 * complete? */
726
727 /* Clean up the SPI stuff. */
728 dev_set_drvdata(&spi->dev, NULL);
729 kfree(devrec->buf);

--- 38 unchanged lines hidden ---
722 ieee802154_unregister_device(devrec->dev);
723 ieee802154_free_device(devrec->dev);
724 /* TODO: Will ieee802154_free_device() wait until ->xmit() is
725 * complete? */
726
727 /* Clean up the SPI stuff. */
728 dev_set_drvdata(&spi->dev, NULL);
729 kfree(devrec->buf);

--- 38 unchanged lines hidden ---