Skip to content

Commit

Permalink
serial_arc: Allocate buffer for private data
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
abrodkin committed Jan 25, 2019
1 parent 70b5ea7 commit d771dd5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/serial/serial_arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit d771dd5

Please sign in to comment.