Lines Matching defs:fdev
764 struct platform_device *fdev = binfo->feature_dev;
770 type = feature_dev_id_type(fdev);
784 pdata->dev = fdev;
800 fdev->dev.platform_data = pdata;
803 fdev->num_resources = binfo->feature_num;
804 fdev->resource = kcalloc(binfo->feature_num, sizeof(*fdev->resource),
806 if (!fdev->resource)
816 feature->dev = fdev;
846 fdev->resource[res_idx++] = finfo->mmio_res;
892 struct platform_device *fdev;
901 fdev = platform_device_alloc(dfl_devs[type].name, -ENODEV);
902 if (!fdev)
905 binfo->feature_dev = fdev;
910 fdev->id = dfl_id_alloc(type, &fdev->dev);
911 if (fdev->id < 0)
912 return fdev->id;
914 fdev->dev.parent = &binfo->cdev->region->dev;
915 fdev->dev.devt = dfl_get_devt(dfl_devs[type].devt_type, fdev->id);