Lines Matching refs:fdev
745 struct platform_device *fdev = binfo->feature_dev;
751 type = feature_dev_id_type(fdev);
765 pdata->dev = fdev;
781 fdev->dev.platform_data = pdata;
784 fdev->num_resources = binfo->feature_num;
785 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource),
787 if (!fdev->resource)
797 feature->dev = fdev;
816 fdev->resource[res_idx++] = finfo->mmio_res;
862 struct platform_device *fdev;
871 fdev = platform_device_alloc(dfl_devs[type].name, -ENODEV);
872 if (!fdev)
875 binfo->feature_dev = fdev;
880 fdev->id = dfl_id_alloc(type, &fdev->dev);
881 if (fdev->id < 0)
882 return fdev->id;
884 fdev->dev.parent = &binfo->cdev->region->dev;
885 fdev->dev.devt = dfl_get_devt(dfl_devs[type].devt_type, fdev->id);