]> git.dujemihanovic.xyz Git - u-boot.git/commit
mips: octeon: Fix Octeon DDR driver to use the correct struct
authorStefan Roese <sr@denx.de>
Wed, 28 Oct 2020 14:10:00 +0000 (15:10 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 30 Nov 2020 17:31:56 +0000 (18:31 +0100)
commit8a138257dd4d6b7de27de9645a868dd56e6018f1
tree03a7136c63ce9dfda091cb3d7c2f052735bbb07d
parentde24bc7e0e3528f3d3c4731ab053a3e8d621ab7a
mips: octeon: Fix Octeon DDR driver to use the correct struct

Don't use "platdata_auto_alloc_size" but "priv_auto_alloc_size" instead
to auto allocate the private data struct, which is referenced via
dev_get_priv() in this driver. This fixes an ugly bug detected while
trying to boot via SPI NOR.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
drivers/ram/octeon/octeon_ddr.c