/* Parse parameters stored in dasd The 'dasd=...' parameter allows to specify a comma separated list of keywords and device ranges. When the dasd driver is build into the kernel, the complete list will be stored as one element of the dasd array. When the dasd driver is build as a module, then the list is broken into it's elements and each dasd entry contains one element.  */
int dasd_parse(void)
/* Parse parameters stored in dasd The 'dasd=...' parameter allows to specify a comma separated list of keywords and device ranges. When the dasd driver is build into the kernel, the complete list will be stored as one element of the dasd array. When the dasd driver is build as a module, then the list is broken into it's elements and each dasd entry contains one element.  */
int dasd_parse(void)
{
	int rc, i;
	char *parsestring;
	rc = 0;
	for (i = 0; i < 256; i++) {
		if (dasd[i] == NULL)
			break;
		parsestring = dasd[i];
		while (*parsestring) {
			parsestring = dasd_parse_next_element(parsestring);
			if(IS_ERR(parsestring)) {
				rc = PTR_ERR(parsestring);
				break;
			}
		}
		if (rc) {
			DBF_EVENT(DBF_ALERT, "%s", "invalid range found");
			break;
		}
	}
	return rc;
}