]> git.sur5r.net Git - u-boot/commit
mtd: pxa3xx_nand: Correct offset calculation
authorKevin Smith <kevin.smith@elecsyscorp.com>
Thu, 14 Jan 2016 16:01:38 +0000 (16:01 +0000)
committerScott Wood <scottwood@freescale.com>
Fri, 12 Feb 2016 23:13:47 +0000 (17:13 -0600)
commit84caff35df0a399051171e4a05c6cbcadd919b64
tree906416eda7ad1b17ef94710baeb902e80426e248
parentb7d3e4a63580198237bdce989d5514476056ee16
mtd: pxa3xx_nand: Correct offset calculation

Correct some pointer math in initialization.  An offset was added
to a struct-typed pointer instead of one casted to a byte-size,
resulting in a much larger offset than intended.

Signed-off-by: Kevin Smith <kevin.smith@elecsyscorp.com>
Cc: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
Cc: Scott Wood <scottwood@freescale.com>
drivers/mtd/nand/pxa3xx_nand.c