2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-24 13:13:57 +08:00
linux-next/include/linux/bcma
Brian Norris 665d2c2848 mtd: bcm47xxnflash: really unregister NAND on device removal
The field bcma_nflash::mtd is never set to be non-zero anywhere, but we
test for it in the removal path. So the MTD is never unregistered.

Also, we should use nand_release(), not mtd_device_unregister().

Finally, we don't need to use the 'platdata' for stashing/retrieving our
*driver* data -- that's what *_{get,set}_drvdata() are for.

So, kill off bcm_nflash::mtd, and stash the struct bcm47xxnflash in
drvdata instead. Also move the forward declaration of mtd_info up a bit,
since struct bcma_sflash should be using it.

Caught while inspecting other changes being made to this driver. Compile
tested only.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: "Rafał Miłecki" <zajec5@gmail.com>
Cc: linux-wireless@vger.kernel.org
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
2015-12-14 10:11:09 -08:00
..
bcma_driver_chipcommon.h mtd: bcm47xxnflash: really unregister NAND on device removal 2015-12-14 10:11:09 -08:00
bcma_driver_gmac_cmn.h bcma: move internal function declarations to private header 2015-03-05 14:11:43 +02:00
bcma_driver_mips.h bcma: move internal function declarations to private header 2015-03-05 14:11:43 +02:00
bcma_driver_pci.h bcma: make calls to PCI hostmode functions config-safe 2015-06-08 14:33:26 +03:00
bcma_driver_pcie2.h bcma: move internal function declarations to private header 2015-03-05 14:11:43 +02:00
bcma_regs.h bcma: implement host code support for PCIe Gen 2 devices 2015-01-29 10:54:43 +02:00
bcma_soc.h bcma: use standard bus scanning during early register 2015-01-23 21:47:55 +02:00
bcma.h brcmfmac: Add support for the BCM4365 and BCM4366 PCIE devices. 2015-09-29 10:56:05 +03:00