diff options
| author | Brian Norris <[email protected]> | 2015-12-08 17:04:59 -0800 |
|---|---|---|
| committer | Brian Norris <[email protected]> | 2015-12-14 10:11:09 -0800 |
| commit | 665d2c2848f14c0c2a2e89192bde9073c4d352f7 (patch) | |
| tree | e1189b714c9def12adfb5d6dc4540549583a4b55 /scripts/stackusage | |
| parent | 320092a05dab2f44819c42f33d6b51efb6c474f2 (diff) | |
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 <[email protected]>
Cc: "Rafał Miłecki" <[email protected]>
Cc: [email protected]
Acked-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions