
10 Dec
2014
10 Dec
'14
9:24 a.m.
This driver uses struct pl01x_priv as private data. However, the area of this structure has not been reserved. This reserves area of struct pl01x_priv by using priv_auto_alloc_size.
Signed-off-by: Nobuhiro Iwamatsu nobuhiro.iwamatsu.yj@renesas.com --- drivers/serial/serial_pl01x.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/drivers/serial/serial_pl01x.c b/drivers/serial/serial_pl01x.c index 38dda91..90165d7 100644 --- a/drivers/serial/serial_pl01x.c +++ b/drivers/serial/serial_pl01x.c @@ -344,6 +344,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
--
2.1.3