Lines Matching refs:devs
589 struct tpm_chip *chip = container_of(dev, struct tpm_chip, devs);
601 cdev_device_del(&chip->cdevs, &chip->devs);
602 put_device(&chip->devs);
613 device_initialize(&chip->devs);
614 chip->devs.parent = chip->dev.parent;
615 chip->devs.class = &tpmrm_class;
618 * Get extra reference on main device to hold on behalf of devs.
623 chip->devs.release = tpm_devs_release;
624 chip->devs.devt = MKDEV(MAJOR(tpm_devt), chip->dev_num + TPM_NUM_DEVICES);
628 rc = dev_set_name(&chip->devs, "tpmrm%d", chip->dev_num);
632 rc = cdev_device_add(&chip->cdevs, &chip->devs);
634 dev_err(&chip->devs,
636 dev_name(&chip->devs), MAJOR(chip->devs.devt),
637 MINOR(chip->devs.devt), rc);
644 put_device(&chip->devs);