return AE_CTRL_TERMINATE;
if (!parse_data->option_independent) { pnp_warn("PnPACPI: more than one EndDependentFn"); return AE_ERROR; } parse_data->option = parse_data->option_independent; parse_data->option_independent = NULL; break;
static acpi_status pnpacpi_option_resource(struct acpi_resource *res, 	void *data){	int priority = 0;	struct acpipnp_parse_option_s *parse_data = (struct acpipnp_parse_option_s *)data;	struct pnp_dev *dev = parse_data->dev;	struct pnp_option *option = parse_data->option;	switch (res->id) {		case ACPI_RSTYPE_IRQ:			pnpacpi_parse_irq_option(option, &res->data.irq);			break;		case ACPI_RSTYPE_EXT_IRQ:			pnpacpi_parse_ext_irq_option(option,				&res->data.extended_irq);			break;		case ACPI_RSTYPE_DMA:			pnpacpi_parse_dma_option(option, &res->data.dma);				break;		case ACPI_RSTYPE_IO:			pnpacpi_parse_port_option(option, &res->data.io);			break;		case ACPI_RSTYPE_FIXED_IO:			pnpacpi_parse_fixed_port_option(option,				&res->data.fixed_io);			break;		case ACPI_RSTYPE_MEM24:			pnpacpi_parse_mem24_option(option, &res->data.memory24);			break;		case ACPI_RSTYPE_MEM32:			pnpacpi_parse_mem32_option(option, &res->data.memory32);			break;		case ACPI_RSTYPE_FIXED_MEM32:			pnpacpi_parse_fixed_mem32_option(option,				&res->data.fixed_memory32);			break;		case ACPI_RSTYPE_START_DPF:			switch (res->data.start_dpf.compatibility_priority) {				case ACPI_GOOD_CONFIGURATION:					priority = PNP_RES_PRIORITY_PREFERRED;					break;									case ACPI_ACCEPTABLE_CONFIGURATION:					priority = PNP_RES_PRIORITY_ACCEPTABLE;					break;				case ACPI_SUB_OPTIMAL_CONFIGURATION:					priority = PNP_RES_PRIORITY_FUNCTIONAL;					break;				default:					priority = PNP_RES_PRIORITY_INVALID;					break;			}			/* TBD: Considering performace/robustness bits */			option = pnp_register_dependent_option(dev, priority);			if (!option)				return AE_ERROR;			parse_data->option = option;				break;		case ACPI_RSTYPE_END_DPF:			return AE_CTRL_TERMINATE;		default:			pnp_warn("PnPACPI: unknown resource type %d", res->id);			return AE_ERROR;	}				return AE_OK;}