summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorAlexey Brodkin <alexey.brodkin@synopsys.com>2019-01-22 18:18:51 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2019-01-25 08:40:26 +0300
commitd771dd531a1aa73e5a1d36b5c08850fc5fa29747 (patch)
treef21a978daade39e85dac8253b57c07fd22295839 /drivers/serial
parent70b5ea74063e55bef59190833b5d83039e3d3ae8 (diff)
serial_arc: Allocate buffer for private data
Apparently we never allocated buffer for arc_serial_platdata which for some reason never caused problems when executed in nSIM. But in Qemu this causes expected problems. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_arc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/serial_arc.c b/drivers/serial/serial_arc.c
index 980b38d2a1..70dbc6d6b5 100644
--- a/drivers/serial/serial_arc.c
+++ b/drivers/serial/serial_arc.c
@@ -126,6 +126,7 @@ U_BOOT_DRIVER(serial_arc) = {
.id = UCLASS_SERIAL,
.of_match = arc_serial_ids,
.ofdata_to_platdata = arc_serial_ofdata_to_platdata,
+ .platdata_auto_alloc_size = sizeof(struct arc_serial_platdata),
.probe = arc_serial_probe,
.ops = &arc_serial_ops,
};