summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2019-09-05 09:54:56 +0200
committerStefano Babic <sbabic@denx.de>2019-10-08 16:36:36 +0200
commit3c50e0156644bf3223db11a57e23cc38de88af3b (patch)
tree38a9b90771a9078e9d66a836a46a29c89b9f65b8
parentf1e323a0a58e6d6b60456bf8e8565f628f33b88c (diff)
spl: Init proper struct driver member (platdata_auto_alloc_size) for mxs_spi
This change initializes proper member of struct driver - platdata_auto_alloc_size instead of priv_auto_alloc_size, which is setup twice. Signed-off-by: Lukasz Majewski <lukma@denx.de>
-rw-r--r--drivers/spi/mxs_spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/mxs_spi.c b/drivers/spi/mxs_spi.c
index 3a9756fbf1..b1cc83aab1 100644
--- a/drivers/spi/mxs_spi.c
+++ b/drivers/spi/mxs_spi.c
@@ -584,7 +584,7 @@ U_BOOT_DRIVER(mxs_spi) = {
.of_match = mxs_spi_ids,
.ofdata_to_platdata = mxs_ofdata_to_platdata,
#endif
- .priv_auto_alloc_size = sizeof(struct mxs_spi_platdata),
+ .platdata_auto_alloc_size = sizeof(struct mxs_spi_platdata),
.ops = &mxs_spi_ops,
.priv_auto_alloc_size = sizeof(struct mxs_spi_priv),
.probe = mxs_spi_probe,