Skip to content
  1. May 31, 2020
    • Miquel Raynal's avatar
      mtd: rawnand: xway: Stop using nand_release() · 9fdd78f7
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-62-miquel.raynal@bootlin.com
      9fdd78f7
    • Miquel Raynal's avatar
      mtd: rawnand: xway: Fix the probe error path · 34531be5
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible. However, pointing this commit as the
      culprit for backporting purposes makes sense even if this commit is not
      introducing any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-61-miquel.raynal@bootlin.com
      34531be5
    • Miquel Raynal's avatar
      mtd: rawnand: vf610: Stop using nand_release() · d9f2a1af
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: Stefan Agner <stefan@agner.ch>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-60-miquel.raynal@bootlin.com
      d9f2a1af
    • Miquel Raynal's avatar
      mtd: rawnand: txx9ndfmc: Stop using nand_release() · f6fc7597
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-59-miquel.raynal@bootlin.com
      f6fc7597
    • Miquel Raynal's avatar
      mtd: rawnand: tmio: Stop using nand_release() · f3e169f4
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-58-miquel.raynal@bootlin.com
      f3e169f4
    • Miquel Raynal's avatar
      mtd: rawnand: tmio: Fix the probe error path · 75e9a330
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates by far the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible. However, pointing this commit as the
      culprit for backporting purposes makes sense even if this commit is not
      introducing any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-57-miquel.raynal@bootlin.com
      75e9a330
    • Miquel Raynal's avatar
      mtd: rawnand: tango: Stop using nand_release() · ab135c51
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-56-miquel.raynal@bootlin.com
      ab135c51
    • Miquel Raynal's avatar
      mtd: rawnand: sunxi: Stop using nand_release() · 068d86ec
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-55-miquel.raynal@bootlin.com
      068d86ec
    • Miquel Raynal's avatar
      mtd: rawnand: sunxi: Fix the probe error path · 3d84515f
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      Fixes: 1fef62c1
      
       ("mtd: nand: add sunxi NAND flash controller support")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-54-miquel.raynal@bootlin.com
      3d84515f
    • Miquel Raynal's avatar
      mtd: rawnand: stm32_fmc2: Stop using nand_release() · 24acc3fa
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: Christophe Kerello <christophe.kerello@st.com>
      Reviewed-by: default avatarChristophe Kerello <christophe.kerello@st.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-53-miquel.raynal@bootlin.com
      24acc3fa
    • Miquel Raynal's avatar
      mtd: rawnand: socrates: Stop using nand_release() · c121cb98
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-52-miquel.raynal@bootlin.com
      c121cb98
    • Miquel Raynal's avatar
      mtd: rawnand: socrates: Fix the probe error path · 9c6c2e5c
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates by far the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible. However, pointing this commit as the
      culprit for backporting purposes makes sense even if this commit is not
      introducing any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-51-miquel.raynal@bootlin.com
      9c6c2e5c
    • Miquel Raynal's avatar
      mtd: rawnand: sharpsl: Stop using nand_release() · 35a37f91
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-50-miquel.raynal@bootlin.com
      35a37f91
    • Miquel Raynal's avatar
      mtd: rawnand: sharpsl: Fix the probe error path · 0f44b327
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no Fixes tag applying here as the use of nand_release()
      in this driver predates by far the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible. However, pointing this commit as the
      culprit for backporting purposes makes sense.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-49-miquel.raynal@bootlin.com
      0f44b327
    • Miquel Raynal's avatar
      mtd: rawnand: sh_flctl: Stop using nand_release() · 50abacbb
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-48-miquel.raynal@bootlin.com
      50abacbb
    • Miquel Raynal's avatar
      mtd: rawnand: s3c2410: Stop using nand_release() · 9748110b
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-47-miquel.raynal@bootlin.com
      9748110b
    • Miquel Raynal's avatar
      mtd: rawnand: r852: Stop using nand_release() · 10b87750
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: Maxim Levitsky <maximlevitsky@gmail.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-46-miquel.raynal@bootlin.com
      10b87750
    • Miquel Raynal's avatar
      mtd: rawnand: qcom: Stop using nand_release() · 0a2bc991
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-45-miquel.raynal@bootlin.com
      0a2bc991
    • Miquel Raynal's avatar
      mtd: rawnand: plat_nand: Stop using nand_release() · d1aae005
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-44-miquel.raynal@bootlin.com
      d1aae005
    • Miquel Raynal's avatar
      mtd: rawnand: plat_nand: Fix the probe error path · 5284024b
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates by far the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible, hence pointing it as the commit to
      fix for backporting purposes, even if this commit is not introducing
      any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-43-miquel.raynal@bootlin.com
      5284024b
    • Miquel Raynal's avatar
      mtd: rawnand: pasemi: Stop using nand_release() · 23cf3461
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-42-miquel.raynal@bootlin.com
      23cf3461
    • Miquel Raynal's avatar
      mtd: rawnand: pasemi: Fix the probe error path · f5146690
      Miquel Raynal authored
      nand_cleanup() is supposed to be called on error after a successful
      call to nand_scan() to free all NAND resources.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates by far the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible, hence pointing it as the commit to
      fix for backporting purposes, even if this commit is not introducing
      any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-41-miquel.raynal@bootlin.com
      f5146690
    • Miquel Raynal's avatar
      mtd: rawnand: oxnas: Stop using nand_release() · 2d9cf6f1
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-40-miquel.raynal@bootlin.com
      2d9cf6f1
    • Miquel Raynal's avatar
      mtd: rawnand: oxnas: Release all devices in the _remove() path · 0a5f45e5
      Miquel Raynal authored
      oxnans_nand_remove() should release all MTD devices and clean all NAND
      devices, not only the first one registered.
      
      Fixes: 66859249
      
       ("mtd: nand: Add OX820 NAND Support")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-39-miquel.raynal@bootlin.com
      0a5f45e5
    • Miquel Raynal's avatar
      mtd: rawnand: oxnas: Unregister all devices on error · b60391eb
      Miquel Raynal authored
      On error, the oxnas probe path just frees the device which failed and
      aborts the probe, leaving unreleased resources.
      
      Fix this situation by calling mtd_device_unregister()/nand_cleanup()
      on these.
      
      Fixes: 66859249
      
       ("mtd: nand: Add OX820 NAND Support")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-38-miquel.raynal@bootlin.com
      b60391eb
    • Miquel Raynal's avatar
      mtd: rawnand: oxnas: Fix the probe error path · 154298e2
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      While at it, be consistent and move the function call in the error
      path thanks to a goto statement.
      
      Fixes: 66859249
      
       ("mtd: nand: Add OX820 NAND Support")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-37-miquel.raynal@bootlin.com
      154298e2
    • Miquel Raynal's avatar
      mtd: rawnand: oxnas: Keep track of registered devices · 383fc3f6
      Miquel Raynal authored
      All initialized and registered devices should be listed somewhere so
      that we can unregister/free them in the _remove() path.
      
      This patch is not a fix per-se but is needed to apply three other
      fixes coming right after, explaining the Fixes/Cc: stable tags.
      
      Fixes: 66859249
      
       ("mtd: nand: Add OX820 NAND Support")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-36-miquel.raynal@bootlin.com
      383fc3f6
    • Miquel Raynal's avatar
      mtd: rawnand: orion: Stop using nand_release() · f342df67
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-35-miquel.raynal@bootlin.com
      f342df67
    • Miquel Raynal's avatar
      mtd: rawnand: orion: Fix the probe error path · be238fbf
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates by far the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible. However, pointing this commit as the
      culprit for backporting purposes makes sense even if this commit is not
      introducing any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-34-miquel.raynal@bootlin.com
      be238fbf
    • Miquel Raynal's avatar
      mtd: rawnand: omap2: Stop using nand_release() · b4533679
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-33-miquel.raynal@bootlin.com
      b4533679
    • Miquel Raynal's avatar
      mtd: rawnand: ndfc: Stop using nand_release() · a9384f95
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-32-miquel.raynal@bootlin.com
      a9384f95
    • Miquel Raynal's avatar
      mtd: rawnand: mxic: Stop using nand_release() · 8fd507bb
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-31-miquel.raynal@bootlin.com
      8fd507bb
    • Miquel Raynal's avatar
      mtd: rawnand: mxc: Stop using nand_release() · c6dc0827
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-30-miquel.raynal@bootlin.com
      c6dc0827
    • Miquel Raynal's avatar
      mtd: rawnand: mtk: Stop using nand_release() · 1fec333a
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-29-miquel.raynal@bootlin.com
      1fec333a
    • Miquel Raynal's avatar
      mtd: rawnand: mtk: Fix the probe error path · 8a82bbca
      Miquel Raynal authored
      nand_release() is supposed be called after MTD device registration.
      Here, only nand_scan() happened, so use nand_cleanup() instead.
      
      There is no real Fixes tag applying here as the use of nand_release()
      in this driver predates the introduction of nand_cleanup() in
      commit d44154f9 ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      which makes this change possible. However, pointing this commit as the
      culprit for backporting purposes makes sense even if this commit is not
      introducing any bug.
      
      Fixes: d44154f9
      
       ("mtd: nand: Provide nand_cleanup() function to free NAND related resources")
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: stable@vger.kernel.org
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-28-miquel.raynal@bootlin.com
      8a82bbca
    • Miquel Raynal's avatar
      mtd: rawnand: mpc5121: Stop using nand_release() · 1a36a7f7
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-27-miquel.raynal@bootlin.com
      1a36a7f7
    • Miquel Raynal's avatar
      mtd: rawnand: marvell: Stop using nand_release() · 5ecbba61
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-26-miquel.raynal@bootlin.com
      5ecbba61
    • Miquel Raynal's avatar
      mtd: rawnand: lpc32xx_slc: Stop using nand_release() · 21b75827
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-25-miquel.raynal@bootlin.com
      21b75827
    • Miquel Raynal's avatar
      mtd: rawnand: lpc32xx_mlc: Stop using nand_release() · 5f3bce3a
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-24-miquel.raynal@bootlin.com
      5f3bce3a
    • Miquel Raynal's avatar
      mtd: rawnand: ingenic: Stop using nand_release() · 28dcc4e8
      Miquel Raynal authored
      
      
      This helper is not very useful and very often people get confused:
      they use nand_release() instead of nand_cleanup().
      
      Let's stop using nand_release() by calling mtd_device_unregister() and
      nand_cleanup() directly.
      
      Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
      Cc: Paul Cercueil <paul@crapouillou.net>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Link: https://lore.kernel.org/linux-mtd/20200519130035.1883-23-miquel.raynal@bootlin.com
      28dcc4e8