[U-Boot] [PATCH] dm: serial: pl01x: Add priv_auto_alloc_size
Nobuhiro Iwamatsu
nobuhiro.iwamatsu.yj at renesas.com
Wed Dec 10 09:24:17 CET 2014
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 at 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
More information about the U-Boot
mailing list