[U-Boot] [PATCH v10 14/27] mtd-uclass: use platdata_auto_alloc

Jagan Teki
2017-12-28T06:12:20Z

Now, mtd uclass can hold platdata for underlying
interface uclass drivers so use platdata_auto_alloc
and access via dev->uclass_platdata.

Signed-off-by: Suneel Garapati <suneelglinux@gmail.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
---
drivers/mtd/mtd-uclass.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/mtd-uclass.c b/drivers/mtd/mtd-uclass.c
index c94afe9..d9ecfea 100644
--- a/drivers/mtd/mtd-uclass.c
+++ b/drivers/mtd/mtd-uclass.c
@@ -199,5 +199,5 @@ int mtd_create_devicef(struct udevice *parent, const char *drv_name,
UCLASS_DRIVER(mtd) = {
.id = UCLASS_MTD,
.name = "mtd",
- .per_device_auto_alloc_size = sizeof(struct mtd_info),
+ .per_device_platdata_auto_alloc_size = sizeof(struct mtd_info),
};
--
2.7.4