]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: Drop mtd.owner requirement in nand_scan
authorEzequiel García <ezequiel@vanguardiasur.com.ar>
Fri, 1 Apr 2016 21:29:23 +0000 (18:29 -0300)
committerBrian Norris <computersforpeace@gmail.com>
Sun, 3 Apr 2016 06:03:51 +0000 (23:03 -0700)
commit72c7617fffd28b78da961a99fdaa3e6c805cb2ad
tree9e38aa340a4a570c79d21b822eafec67df13eb36
parent3039f62d3fccb077513a4ffae4d1ef4609c1b724
mtd: nand: Drop mtd.owner requirement in nand_scan

Since commit 027cafc3ade9 ("mtd: core: set some defaults
when dev.parent is set"), it's now legal for drivers
to call nand_scan and nand_scan_ident without setting
mtd.owner.

Drop the check and while at it remove the BUG() abuse.

Fixes: 027cafc3ade9 ("mtd: core: set some defaults when dev.parent is set")
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
[Brian: editorial note - while commit 027cafc3ade9 wasn't explicitly
    broken, some follow-up commits in the v4.4 release broke a few
    drivers, since they would hit this BUG() if they used nand_scan()
    and were built as modules]
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/nand_base.c