/* Must be called when a user of a device is finished with it. When the last user of the device calls this function, the memory of the device is freed.  */
void rio_dev_put(struct rio_dev *rdev)
/* Must be called when a user of a device is finished with it. When the last user of the device calls this function, the memory of the device is freed.  */
void rio_dev_put(struct rio_dev *rdev)
{
	if (rdev)
		put_device(&rdev->dev);
}