Lines Matching refs:platdev
495 struct platform_device *platdev; member
516 info->platdev = platform_device_alloc(info->name, -1); in via_create_subdev()
517 if (!info->platdev) { in via_create_subdev()
522 info->platdev->dev.parent = &vdev->pdev->dev; in via_create_subdev()
523 info->platdev->dev.platform_data = vdev; in via_create_subdev()
524 ret = platform_device_add(info->platdev); in via_create_subdev()
528 platform_device_put(info->platdev); in via_create_subdev()
529 info->platdev = NULL; in via_create_subdev()
553 if (viafb_subdevs[i].platdev) { in via_teardown_subdevs()
554 viafb_subdevs[i].platdev->dev.platform_data = NULL; in via_teardown_subdevs()
555 platform_device_unregister(viafb_subdevs[i].platdev); in via_teardown_subdevs()