summaryrefslogtreecommitdiff
path: root/include/linux/kbuild.h
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel@vanguardiasur.com.ar>2018-01-12 15:30:55 -0300
committerMichal Simek <michal.simek@xilinx.com>2018-04-23 13:15:27 +0200
commit07c5cbbd1e6573e169687da873db37503a1f8b60 (patch)
tree8150950c1b09f460d60df353b2e5e58f0295dfdc /include/linux/kbuild.h
parent275d80a4c2fb63890f3f4c16b7ad481064e650a0 (diff)
nand: zynq: Fix driver initialization
This driver is currently broken, refusing to initialize properly. The reason is that get_nand_dev_by_index() was being called before nand_register(), thus returning a pointer into uninitialized memory. In other words, the struct mtd_info used by the driver is total junk. Fix it by getting the correct struct mtd_info, via nand_to_mtd() on the driver's struct nand_chip. Tested on a custom board, where the CPU is halted without this patch. Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar> Reviewed-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'include/linux/kbuild.h')
0 files changed, 0 insertions, 0 deletions