1. 19 12月, 2015 35 次提交
  2. 15 12月, 2015 1 次提交
    • B
      mtd: bcm47xxnflash: really unregister NAND on device removal · 665d2c28
      Brian Norris 提交于
      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: NBrian Norris <computersforpeace@gmail.com>
      Cc: "Rafał Miłecki" <zajec5@gmail.com>
      Cc: linux-wireless@vger.kernel.org
      Acked-by: NBoris Brezillon <boris.brezillon@free-electrons.com>
      665d2c28
  3. 12 12月, 2015 1 次提交
  4. 11 12月, 2015 1 次提交
  5. 10 12月, 2015 2 次提交