diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 77eae99af11ce7ee1541816f3e8c99b352b7a241..b2ccdea30cb92524427cffbad40ddeb5319f5b14 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -319,7 +319,7 @@ struct spi_device *spi_alloc_device(struct spi_master *master) } spi->master = master; - spi->dev.parent = dev; + spi->dev.parent = &master->dev; spi->dev.bus = &spi_bus_type; spi->dev.release = spidev_release; device_initialize(&spi->dev);