···88888989 pdev->dev.parent = parent;90909191+ if (cell->pdata_size) {9292+ ret = platform_device_add_data(pdev,9393+ cell->platform_data, cell->pdata_size);9494+ if (ret)9595+ goto fail_res;9696+ }9797+9198 ret = mfd_platform_add_cell(pdev, cell);9299 if (ret)93100 goto fail_res;
+4
include/linux/mfd/core.h
···3636 /* mfd_data can be used to pass data to client drivers */3737 void *mfd_data;38383939+ /* platform data passed to the sub devices drivers */4040+ void *platform_data;4141+ size_t pdata_size;4242+3943 /*4044 * These resources can be specified relative to the parent device.4145 * For accessing hardware you should use resources from the platform dev