]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: pxa3xx: Fix registered MTD name
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Sat, 19 Oct 2013 21:19:25 +0000 (18:19 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 24 Oct 2013 21:44:28 +0000 (14:44 -0700)
commit49f8f43c983f8ca39ab17ced174b0c9fffd0bf34
tree3a45a2809383649ff7dbf5b4655a0c2b0a1d7455
parentd0b5e8221182c986ed6c4aedb78915511d550c44
mtd: nand: pxa3xx: Fix registered MTD name

In a recent commit:

  commit 7d686d2abffd7e92c165638e15705b82f9f7ab2a
  Author: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
  Date:   Mon Aug 12 14:14:53 2013 -0300

  mtd: nand: pxa3xx: Remove hardcoded mtd name

  There's no advantage in using a hardcoded name for the mtd device.
  Instead use the provided by the platform_device.

The MTD name was changed to use the one provided by the platform_device.
However, this can be problematic as some users want to set partitions
using the kernel parameter 'mtdparts', where the name is needed.

Therefore, to avoid regressions in users relying in 'mtdparts' we revert
the change and use the previous one 'pxa3xx_nand-0'.

While at it, let's put a big comment and prevent this change from happening
ever again.

Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/pxa3xx_nand.c