/* Make a new device known to the system.  */
static int dasd_state_new_to_known(struct dasd_device *device)
/* Make a new device known to the system.  */
static int dasd_state_new_to_known(struct dasd_device *device)
{
	int rc;
	dasd_get_device(device);
	if (device->block) {
		rc = dasd_alloc_queue(device->block);
		if (rc) {
			dasd_put_device(device);
			return rc;
		}
	}
	device->state = DASD_STATE_KNOWN;
	return 0;
}