/* Get a reference to an existing device structure. This will automatically increment the reference count.  */
struct tape_device* tape_get_device(struct tape_device *device)
/* Get a reference to an existing device structure. This will automatically increment the reference count.  */
struct tape_device* tape_get_device(struct tape_device *device)
{
	int count;
	count = atomic_inc_return(&device->ref_count);
	DBF_EVENT(4, "tape_get_device(%p) = %i\n", device, count);
	return device;
}