diff options
| author | Stefan Roese <[email protected]> | 2020-10-28 15:10:00 +0100 |
|---|---|---|
| committer | Daniel Schwierzeck <[email protected]> | 2020-11-30 18:31:56 +0100 |
| commit | 8a138257dd4d6b7de27de9645a868dd56e6018f1 (patch) | |
| tree | 03a7136c63ce9dfda091cb3d7c2f052735bbb07d /drivers | |
| parent | de24bc7e0e3528f3d3c4731ab053a3e8d621ab7a (diff) | |
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 <[email protected]>
Cc: Aaron Williams <[email protected]>
Cc: Chandrakala Chavva <[email protected]>
Cc: Daniel Schwierzeck <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/ram/octeon/octeon_ddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ram/octeon/octeon_ddr.c b/drivers/ram/octeon/octeon_ddr.c index 757436b9d37..aaff9c36879 100644 --- a/drivers/ram/octeon/octeon_ddr.c +++ b/drivers/ram/octeon/octeon_ddr.c @@ -2724,5 +2724,5 @@ U_BOOT_DRIVER(octeon_ddr) = { .of_match = octeon_ids, .ops = &octeon_ops, .probe = octeon_ddr_probe, - .platdata_auto_alloc_size = sizeof(struct ddr_priv), + .priv_auto_alloc_size = sizeof(struct ddr_priv), }; |
