Lines Matching refs:spi_dev
116 struct spi_device *spi_dev; in smi_spi_probe() local
134 spi_dev = acpi_spi_device_alloc(NULL, adev, i); in smi_spi_probe()
135 if (IS_ERR(spi_dev)) { in smi_spi_probe()
136 ret = dev_err_probe(dev, PTR_ERR(spi_dev), "failed to allocate SPI device %s from ACPI\n", in smi_spi_probe()
141 ctlr = spi_dev->controller; in smi_spi_probe()
143 strscpy(spi_dev->modalias, inst_array[i].type); in smi_spi_probe()
147 spi_dev_put(spi_dev); in smi_spi_probe()
150 spi_dev->irq = ret; in smi_spi_probe()
154 spi_dev->dev.init_name = name; in smi_spi_probe()
156 ret = spi_add_device(spi_dev); in smi_spi_probe()
160 spi_dev_put(spi_dev); in smi_spi_probe()
165 spi_get_chipselect(spi_dev, 0)); in smi_spi_probe()
167 smi->spi_devs[i] = spi_dev; in smi_spi_probe()