/* Register the given device unique identifier into devmap struct. In addition check if the related storage server subsystem ID is already contained in the dasd_server_ssid_list. If subsystem ID is not contained, create new entry. Return 0 if server was already in serverlist, 1 if the server was added successful <0 in case of error.  */
int dasd_set_uid(struct ccw_device *cdev, struct dasd_uid *uid)
/* Register the given device unique identifier into devmap struct. In addition check if the related storage server subsystem ID is already contained in the dasd_server_ssid_list. If subsystem ID is not contained, create new entry. Return 0 if server was already in serverlist, 1 if the server was added successful <0 in case of error.  */
int dasd_set_uid(struct ccw_device *cdev, struct dasd_uid *uid)
{
	struct dasd_devmap *devmap;
	devmap = dasd_find_busid(dev_name(&cdev->dev));
	if (IS_ERR(devmap))
		return PTR_ERR(devmap);
	spin_lock(&dasd_devmap_lock);
	devmap->uid = *uid;
	spin_unlock(&dasd_devmap_lock);
	return 0;
}