/* This function is called for every new tapedevice  */
int tapechar_setup_device(struct tape_device *device)
/* This function is called for every new tapedevice  */
int tapechar_setup_device(struct tape_device *device)
{
	char	device_name[20];
	sprintf(device_name, "ntibm%i", device->first_minor / 2);
	device->nt = register_tape_dev(
		&device->cdev->dev,
		MKDEV(tapechar_major, device->first_minor),
		&tape_fops,
		device_name,
		"non-rewinding"
	);
	device_name[0] = 'r';
	device->rt = register_tape_dev(
		&device->cdev->dev,
		MKDEV(tapechar_major, device->first_minor + 1),
		&tape_fops,
		device_name,
		"rewinding"
	);
	return 0;
}