summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-24 21:36:35 -0700
committerSimon Glass <sjg@chromium.org>2014-12-11 13:18:41 -0700
commit59c73d7555a88bbe7b42a7153181fe4252e83c24 (patch)
tree70e4022bcde1587c5793bee231067852b856a13e /drivers/serial
parenta56642c7baa02ec4f054d630ec4e5e56d8e087da (diff)
downloadu-boot-imx-59c73d7555a88bbe7b42a7153181fe4252e83c24.zip
u-boot-imx-59c73d7555a88bbe7b42a7153181fe4252e83c24.tar.gz
u-boot-imx-59c73d7555a88bbe7b42a7153181fe4252e83c24.tar.bz2
dm: serial_pl01x: Add missing private data size
The private data size is missing from the driver, so we store it at 0, which causes problems when something overwrites memory at 0. Fix this. Change-Id: I6f551ee905b0064ae8343e41e46450c37c8c8c1a Signed-off-by: Simon Glass <sjg@chromium.org> Tested-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_pl01x.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c
index e1bf496..75eb6bd 100644
--- a/drivers/serial/serial_pl01x.c
+++ b/drivers/serial/serial_pl01x.c
@@ -348,6 +348,7 @@ U_BOOT_DRIVER(serial_pl01x) = {
.probe = pl01x_serial_probe,
.ops = &pl01x_serial_ops,
.flags = DM_FLAG_PRE_RELOC,
+ .priv_auto_alloc_size = sizeof(struct pl01x_priv),
};
#endif