Lines Matching refs:spi_dev
111 struct spi_device *spi_dev; in smi_spi_probe() local
129 spi_dev = acpi_spi_device_alloc(NULL, adev, i); in smi_spi_probe()
130 if (IS_ERR(spi_dev)) { in smi_spi_probe()
131 ret = dev_err_probe(dev, PTR_ERR(spi_dev), "failed to allocate SPI device %s from ACPI\n", in smi_spi_probe()
136 ctlr = spi_dev->controller; in smi_spi_probe()
138 strscpy(spi_dev->modalias, inst_array[i].type); in smi_spi_probe()
142 spi_dev_put(spi_dev); in smi_spi_probe()
145 spi_dev->irq = ret; in smi_spi_probe()
149 spi_dev->dev.init_name = name; in smi_spi_probe()
151 ret = spi_add_device(spi_dev); in smi_spi_probe()
155 spi_dev_put(spi_dev); in smi_spi_probe()
160 spi_get_chipselect(spi_dev, 0)); in smi_spi_probe()
162 smi->spi_devs[i] = spi_dev; in smi_spi_probe()