diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 01a40bcfc352c5a186d1c7016a2969e3ca46b4b2..a31e1e291335915574f25836b74eaf32b13ef212 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1907,7 +1907,7 @@ static int acpi_spi_add_resource(struct acpi_resource *ares, void *data) sb->resource_source.string_ptr, &parent_handle); - if (!status || + if (ACPI_FAILURE(status) || ACPI_HANDLE(ctlr->dev.parent) != parent_handle) return -ENODEV;