On Thu, Jun 20, 2019 at 12:33:41PM +0200, Ard Biesheuvel wrote: > Jarkko, does this help? > > diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c > index 50d230b33c42..d072efdd65ba 100644 > --- a/drivers/spi/spi.c > +++ b/drivers/spi/spi.c > @@ -1914,6 +1914,7 @@ static acpi_status > acpi_register_spi_device(struct spi_controller *ctlr, > return AE_OK; > > lookup.ctlr = ctlr; > + lookup.max_speed_hz = 0; > lookup.mode = 0; > lookup.bits_per_word = 0; > lookup.irq = -1; IMHO it's better to do: memset(&lookup, 0, sizeof(lookup)); lookup.ctlr = ctlr; lookup.irq = -1; this also initializes chip_select and possibly other fields that get added to the lookup structure later.