Lines Matching refs:spi_dev
94 struct spi_device *spi_dev; in smi_spi_probe() local
112 spi_dev = acpi_spi_device_alloc(NULL, adev, i); in smi_spi_probe()
113 if (IS_ERR(spi_dev)) { in smi_spi_probe()
114 ret = dev_err_probe(dev, PTR_ERR(spi_dev), "failed to allocate SPI device %s from ACPI\n", in smi_spi_probe()
119 ctlr = spi_dev->controller; in smi_spi_probe()
121 strscpy(spi_dev->modalias, inst_array[i].type, sizeof(spi_dev->modalias)); in smi_spi_probe()
125 spi_dev_put(spi_dev); in smi_spi_probe()
128 spi_dev->irq = ret; in smi_spi_probe()
132 spi_dev->dev.init_name = name; in smi_spi_probe()
134 ret = spi_add_device(spi_dev); in smi_spi_probe()
138 spi_dev_put(spi_dev); in smi_spi_probe()
142 dev_dbg(dev, "SPI device %s using chip select %u", name, spi_dev->chip_select); in smi_spi_probe()
144 smi->spi_devs[i] = spi_dev; in smi_spi_probe()