spl: Init proper struct driver member (platdata_auto_alloc_size) for mxs_spi
authorLukasz Majewski <lukma@denx.de>
Thu, 5 Sep 2019 07:54:56 +0000 (09:54 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 8 Oct 2019 14:36:36 +0000 (16:36 +0200)
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>
drivers/spi/mxs_spi.c

index 3a9756fbf1b15a8b4b1e0c2bc006dc0fbacd1cb5..b1cc83aab101cf012083a43f06e0d970e0b3b263 100644 (file)
@@ -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,