spi: remove duplicate parameters check in acpi_spi_add_resource()
[sfrench/cifs-2.6.git] / drivers / spi / spi.c
index 46c8f3ff89cb343ffb9aef0add8f2b55cb4128b3..562d6441c7fd973571f611ce32a96871c640a6b1 100644 (file)
@@ -2453,9 +2453,6 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data)
                        if (lookup->index != -1 && lookup->n++ != lookup->index)
                                return 1;
 
-                       if (lookup->index == -1 && !ctlr)
-                               return -ENODEV;
-
                        status = acpi_get_handle(NULL,
                                                 sb->resource_source.string_ptr,
                                                 &parent_handle);