Lines Matching defs:platdev
462 struct platform_device *platdev;
478 info->platdev = platform_device_alloc(info->name, -1);
479 if (!info->platdev) {
484 info->platdev->dev.parent = &vdev->pdev->dev;
485 info->platdev->dev.platform_data = vdev;
486 ret = platform_device_add(info->platdev);
490 platform_device_put(info->platdev);
491 info->platdev = NULL;
515 if (viafb_subdevs[i].platdev) {
516 viafb_subdevs[i].platdev->dev.platform_data = NULL;
517 platform_device_unregister(viafb_subdevs[i].platdev);