mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
spi: Drop duplicate of_node assignment
The SPI core provides the default of_node for the controller, inherited from the actual (parent) device. No need to repeat it in the driver. Acked-by: Heiko Stuebner <heiko@sntech.de> Reviewed-by: William Zhang <william.zhang@broadcom.com> Acked-by: Chen-Yu Tsai <wens@kernel.org> # sun4i, sun6i Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Amelie Delaunay <amelie.delaunay@foss.st.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> # renesas Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://patch.msgid.link/20260112203534.4186261-3-andriy.shevchenko@linux.intel.com Tested-by: Prajna Rajendra Kumar <prajna.rajendrakumar@microchip.com> Reviewed-by: Linus Walleij <linusw@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
f2d1a3318e
commit
3974a585be
87 changed files with 1 additions and 90 deletions
|
|
@ -1382,7 +1382,6 @@ static int atmel_qspi_probe(struct platform_device *pdev)
|
|||
ctrl->bus_num = -1;
|
||||
ctrl->mem_ops = &atmel_qspi_mem_ops;
|
||||
ctrl->num_chipselect = 1;
|
||||
ctrl->dev.of_node = pdev->dev.of_node;
|
||||
platform_set_drvdata(pdev, ctrl);
|
||||
|
||||
/* Map the registers */
|
||||
|
|
|
|||
|
|
@ -67,8 +67,6 @@ static int altera_spi_probe(struct platform_device *pdev)
|
|||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16);
|
||||
}
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
hw = spi_controller_get_devdata(host);
|
||||
hw->dev = &pdev->dev;
|
||||
|
||||
|
|
|
|||
|
|
@ -358,7 +358,6 @@ static int amlogic_spifc_a1_probe(struct platform_device *pdev)
|
|||
return ret;
|
||||
|
||||
ctrl->num_chipselect = 1;
|
||||
ctrl->dev.of_node = pdev->dev.of_node;
|
||||
ctrl->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
ctrl->auto_runtime_pm = true;
|
||||
ctrl->mem_ops = &amlogic_spifc_a1_mem_ops;
|
||||
|
|
|
|||
|
|
@ -781,7 +781,6 @@ static int aml_spisg_probe(struct platform_device *pdev)
|
|||
pm_runtime_resume_and_get(&spisg->pdev->dev);
|
||||
|
||||
ctlr->num_chipselect = 4;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST |
|
||||
SPI_3WIRE | SPI_TX_QUAD | SPI_RX_QUAD;
|
||||
ctlr->max_speed_hz = 1000 * 1000 * 100;
|
||||
|
|
|
|||
|
|
@ -485,7 +485,6 @@ static int apple_spi_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
return dev_err_probe(&pdev->dev, ret, "Unable to bind to interrupt\n");
|
||||
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->bus_num = pdev->id;
|
||||
ctlr->num_chipselect = 1;
|
||||
ctlr->mode_bits = SPI_CPHA | SPI_CPOL | SPI_LSB_FIRST;
|
||||
|
|
|
|||
|
|
@ -195,7 +195,6 @@ static int ar934x_spi_probe(struct platform_device *pdev)
|
|||
ctlr->transfer_one_message = ar934x_spi_transfer_one_message;
|
||||
ctlr->bits_per_word_mask = SPI_BPW_MASK(32) | SPI_BPW_MASK(24) |
|
||||
SPI_BPW_MASK(16) | SPI_BPW_MASK(8);
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->num_chipselect = 3;
|
||||
|
||||
dev_set_drvdata(&pdev->dev, ctlr);
|
||||
|
|
|
|||
|
|
@ -813,7 +813,6 @@ MODULE_DEVICE_TABLE(of, a3700_spi_dt_ids);
|
|||
static int a3700_spi_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct device_node *of_node = dev->of_node;
|
||||
struct spi_controller *host;
|
||||
struct a3700_spi *spi;
|
||||
u32 num_cs = 0;
|
||||
|
|
@ -826,14 +825,13 @@ static int a3700_spi_probe(struct platform_device *pdev)
|
|||
goto out;
|
||||
}
|
||||
|
||||
if (of_property_read_u32(of_node, "num-cs", &num_cs)) {
|
||||
if (of_property_read_u32(dev->of_node, "num-cs", &num_cs)) {
|
||||
dev_err(dev, "could not find num-cs\n");
|
||||
ret = -ENXIO;
|
||||
goto error;
|
||||
}
|
||||
|
||||
host->bus_num = pdev->id;
|
||||
host->dev.of_node = of_node;
|
||||
host->mode_bits = SPI_MODE_3;
|
||||
host->num_chipselect = num_cs;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8) | SPI_BPW_MASK(32);
|
||||
|
|
|
|||
|
|
@ -898,7 +898,6 @@ static int aspeed_spi_probe(struct platform_device *pdev)
|
|||
ctlr->setup = aspeed_spi_setup;
|
||||
ctlr->cleanup = aspeed_spi_cleanup;
|
||||
ctlr->num_chipselect = of_get_available_child_count(dev->of_node);
|
||||
ctlr->dev.of_node = dev->of_node;
|
||||
|
||||
aspi->num_cs = ctlr->num_chipselect;
|
||||
|
||||
|
|
|
|||
|
|
@ -552,7 +552,6 @@ static void atcspi_init_controller(struct platform_device *pdev,
|
|||
/* Initialize controller properties */
|
||||
host->bus_num = pdev->id;
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_QUAD | SPI_TX_QUAD;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->num_chipselect = ATCSPI_MAX_CS_NUM;
|
||||
host->mem_ops = &atcspi_mem_ops;
|
||||
host->max_speed_hz = spi->sclk_rate;
|
||||
|
|
|
|||
|
|
@ -180,7 +180,6 @@ static int ath79_spi_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
sp = spi_controller_get_devdata(host);
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
platform_set_drvdata(pdev, sp);
|
||||
|
||||
host->use_gpio_descriptors = true;
|
||||
|
|
|
|||
|
|
@ -1536,7 +1536,6 @@ static int atmel_spi_probe(struct platform_device *pdev)
|
|||
host->use_gpio_descriptors = true;
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(8, 16);
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = pdev->id;
|
||||
host->num_chipselect = 4;
|
||||
host->setup = atmel_spi_setup;
|
||||
|
|
|
|||
|
|
@ -1080,7 +1080,6 @@ static int spi_engine_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_3WIRE;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
|
||||
host->max_speed_hz = clk_get_rate(spi_engine->ref_clk) / 2;
|
||||
|
|
|
|||
|
|
@ -1529,7 +1529,6 @@ int bcm_qspi_probe(struct platform_device *pdev,
|
|||
host->transfer_one = bcm_qspi_transfer_one;
|
||||
host->mem_ops = &bcm_qspi_mem_ops;
|
||||
host->cleanup = bcm_qspi_cleanup;
|
||||
host->dev.of_node = dev->of_node;
|
||||
host->num_chipselect = NUM_CHIPSELECT;
|
||||
host->use_gpio_descriptors = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -1368,7 +1368,6 @@ static int bcm2835_spi_probe(struct platform_device *pdev)
|
|||
ctlr->transfer_one = bcm2835_spi_transfer_one;
|
||||
ctlr->handle_err = bcm2835_spi_handle_err;
|
||||
ctlr->prepare_message = bcm2835_spi_prepare_message;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
bs = spi_controller_get_devdata(ctlr);
|
||||
bs->ctlr = ctlr;
|
||||
|
|
|
|||
|
|
@ -502,7 +502,6 @@ static int bcm2835aux_spi_probe(struct platform_device *pdev)
|
|||
host->handle_err = bcm2835aux_spi_handle_err;
|
||||
host->prepare_message = bcm2835aux_spi_prepare_message;
|
||||
host->unprepare_message = bcm2835aux_spi_unprepare_message;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->use_gpio_descriptors = true;
|
||||
|
||||
bs = spi_controller_get_devdata(host);
|
||||
|
|
|
|||
|
|
@ -822,7 +822,6 @@ static int bcm63xx_hsspi_probe(struct platform_device *pdev)
|
|||
init_completion(&bs->done);
|
||||
|
||||
host->mem_ops = &bcm63xx_hsspi_mem_ops;
|
||||
host->dev.of_node = dev->of_node;
|
||||
if (!dev->of_node)
|
||||
host->bus_num = HSSPI_BUS_NUM;
|
||||
|
||||
|
|
|
|||
|
|
@ -571,7 +571,6 @@ static int bcm63xx_spi_probe(struct platform_device *pdev)
|
|||
goto out_err;
|
||||
}
|
||||
|
||||
host->dev.of_node = dev->of_node;
|
||||
host->bus_num = bus_num;
|
||||
host->num_chipselect = num_cs;
|
||||
host->transfer_one_message = bcm63xx_spi_transfer_one;
|
||||
|
|
|
|||
|
|
@ -500,7 +500,6 @@ static int bcmbca_hsspi_probe(struct platform_device *pdev)
|
|||
mutex_init(&bs->msg_mutex);
|
||||
init_completion(&bs->done);
|
||||
|
||||
host->dev.of_node = dev->of_node;
|
||||
if (!dev->of_node)
|
||||
host->bus_num = HSSPI_BUS_NUM;
|
||||
|
||||
|
|
|
|||
|
|
@ -1827,7 +1827,6 @@ static int cqspi_probe(struct platform_device *pdev)
|
|||
host->mode_bits = SPI_RX_QUAD | SPI_RX_DUAL;
|
||||
host->mem_ops = &cqspi_mem_ops;
|
||||
host->mem_caps = &cqspi_mem_caps;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
cqspi = spi_controller_get_devdata(host);
|
||||
|
||||
|
|
|
|||
|
|
@ -1157,7 +1157,6 @@ static int cdns_xspi_probe(struct platform_device *pdev)
|
|||
cdns_xspi->sdma_handler = &cdns_xspi_sdma_handle;
|
||||
cdns_xspi->set_interrupts_handler = &cdns_xspi_set_interrupts;
|
||||
}
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = -1;
|
||||
|
||||
platform_set_drvdata(pdev, host);
|
||||
|
|
|
|||
|
|
@ -651,7 +651,6 @@ static int cdns_spi_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
xspi = spi_controller_get_devdata(ctlr);
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
platform_set_drvdata(pdev, ctlr);
|
||||
|
||||
xspi->regs = devm_platform_ioremap_resource(pdev, 0);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,6 @@ static int octeon_spi_probe(struct platform_device *pdev)
|
|||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->max_speed_hz = OCTEON_SPI_MAX_CLOCK_HZ;
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
err = devm_spi_register_controller(&pdev->dev, host);
|
||||
if (err) {
|
||||
dev_err(&pdev->dev, "register host failed: %d\n", err);
|
||||
|
|
|
|||
|
|
@ -67,7 +67,6 @@ static int thunderx_spi_probe(struct pci_dev *pdev,
|
|||
host->transfer_one_message = octeon_spi_transfer_one_message;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->max_speed_hz = OCTEON_SPI_MAX_CLOCK_HZ;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
pci_set_drvdata(pdev, host);
|
||||
|
||||
|
|
|
|||
|
|
@ -107,7 +107,6 @@ static int spi_clps711x_probe(struct platform_device *pdev)
|
|||
host->bus_num = -1;
|
||||
host->mode_bits = SPI_CPHA | SPI_CS_HIGH;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 8);
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->prepare_message = spi_clps711x_prepare_message;
|
||||
host->transfer_one = spi_clps711x_transfer_one;
|
||||
|
||||
|
|
|
|||
|
|
@ -988,7 +988,6 @@ static int davinci_spi_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
host->use_gpio_descriptors = true;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = pdev->id;
|
||||
host->num_chipselect = pdata->num_chipselect;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(2, 16);
|
||||
|
|
|
|||
|
|
@ -405,7 +405,6 @@ static int falcon_sflash_probe(struct platform_device *pdev)
|
|||
host->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
host->setup = falcon_sflash_setup;
|
||||
host->transfer_one_message = falcon_sflash_xfer_one;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
ret = devm_spi_register_controller(&pdev->dev, host);
|
||||
if (ret)
|
||||
|
|
|
|||
|
|
@ -1555,7 +1555,6 @@ static int dspi_probe(struct platform_device *pdev)
|
|||
|
||||
ctlr->setup = dspi_setup;
|
||||
ctlr->transfer_one_message = dspi_transfer_one_message;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
ctlr->cleanup = dspi_cleanup;
|
||||
ctlr->target_abort = dspi_target_abort;
|
||||
|
|
|
|||
|
|
@ -675,7 +675,6 @@ static int fsl_espi_probe(struct device *dev, struct resource *mem,
|
|||
|
||||
host->mode_bits = SPI_RX_DUAL | SPI_CPOL | SPI_CPHA | SPI_CS_HIGH |
|
||||
SPI_LSB_FIRST | SPI_LOOP;
|
||||
host->dev.of_node = dev->of_node;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 16);
|
||||
host->setup = fsl_espi_setup;
|
||||
host->cleanup = fsl_espi_cleanup;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,6 @@ void mpc8xxx_spi_probe(struct device *dev, struct resource *mem,
|
|||
ctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH
|
||||
| SPI_LSB_FIRST | SPI_LOOP;
|
||||
|
||||
ctlr->dev.of_node = dev->of_node;
|
||||
|
||||
mpc8xxx_spi = spi_controller_get_devdata(ctlr);
|
||||
mpc8xxx_spi->dev = dev;
|
||||
|
|
|
|||
|
|
@ -949,7 +949,6 @@ static int fsl_lpspi_probe(struct platform_device *pdev)
|
|||
controller->unprepare_transfer_hardware = lpspi_unprepare_xfer_hardware;
|
||||
controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
|
||||
controller->flags = SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX;
|
||||
controller->dev.of_node = pdev->dev.of_node;
|
||||
controller->bus_num = pdev->id;
|
||||
controller->num_chipselect = num_cs;
|
||||
controller->target_abort = fsl_lpspi_target_abort;
|
||||
|
|
|
|||
|
|
@ -1057,7 +1057,6 @@ static int spi_geni_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
spi->bus_num = -1;
|
||||
spi->dev.of_node = dev->of_node;
|
||||
spi->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LOOP | SPI_CS_HIGH;
|
||||
spi->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 32);
|
||||
spi->num_chipselect = 4;
|
||||
|
|
|
|||
|
|
@ -284,7 +284,6 @@ static int gxp_spifi_probe(struct platform_device *pdev)
|
|||
ctlr->mem_ops = &gxp_spi_mem_ops;
|
||||
ctlr->setup = gxp_spi_setup;
|
||||
ctlr->num_chipselect = data->max_cs;
|
||||
ctlr->dev.of_node = dev->of_node;
|
||||
|
||||
ret = devm_spi_register_controller(dev, ctlr);
|
||||
if (ret) {
|
||||
|
|
|
|||
|
|
@ -587,7 +587,6 @@ static int img_spfi_probe(struct platform_device *pdev)
|
|||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_TX_DUAL | SPI_RX_DUAL;
|
||||
if (of_property_read_bool(spfi->dev->of_node, "img,supports-quad-mode"))
|
||||
host->mode_bits |= SPI_TX_QUAD | SPI_RX_QUAD;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(32) | SPI_BPW_MASK(8);
|
||||
host->max_speed_hz = clk_get_rate(spfi->spfi_clk) / 4;
|
||||
host->min_speed_hz = clk_get_rate(spfi->spfi_clk) / 512;
|
||||
|
|
|
|||
|
|
@ -2368,7 +2368,6 @@ static int spi_imx_probe(struct platform_device *pdev)
|
|||
|
||||
spi_imx->devtype_data->intctrl(spi_imx, 0);
|
||||
|
||||
controller->dev.of_node = pdev->dev.of_node;
|
||||
ret = spi_register_controller(controller);
|
||||
if (ret) {
|
||||
dev_err_probe(&pdev->dev, ret, "register controller failed\n");
|
||||
|
|
|
|||
|
|
@ -442,7 +442,6 @@ static int spi_ingenic_probe(struct platform_device *pdev)
|
|||
ctlr->use_gpio_descriptors = true;
|
||||
ctlr->max_native_cs = pdata->max_native_cs;
|
||||
ctlr->num_chipselect = num_cs;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
if (spi_ingenic_request_dma(ctlr, dev))
|
||||
dev_warn(dev, "DMA not available.\n");
|
||||
|
|
|
|||
|
|
@ -962,7 +962,6 @@ static int lantiq_ssc_probe(struct platform_device *pdev)
|
|||
spi->bits_per_word = 8;
|
||||
spi->speed_hz = 0;
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->num_chipselect = num_cs;
|
||||
host->use_gpio_descriptors = true;
|
||||
host->setup = lantiq_ssc_setup;
|
||||
|
|
|
|||
|
|
@ -200,7 +200,6 @@ spi_lp8841_rtc_probe(struct platform_device *pdev)
|
|||
host->transfer_one = spi_lp8841_rtc_transfer_one;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
#ifdef CONFIG_OF
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
#endif
|
||||
|
||||
data = spi_controller_get_devdata(host);
|
||||
|
|
|
|||
|
|
@ -1054,7 +1054,6 @@ static int meson_spicc_probe(struct platform_device *pdev)
|
|||
device_reset_optional(&pdev->dev);
|
||||
|
||||
host->num_chipselect = 4;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LOOP;
|
||||
host->flags = (SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX);
|
||||
host->min_speed_hz = spicc->data->min_speed_hz;
|
||||
|
|
|
|||
|
|
@ -322,7 +322,6 @@ static int meson_spifc_probe(struct platform_device *pdev)
|
|||
rate = clk_get_rate(spifc->clk);
|
||||
|
||||
host->num_chipselect = 1;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->auto_runtime_pm = true;
|
||||
host->transfer_one = meson_spifc_transfer_one;
|
||||
|
|
|
|||
|
|
@ -360,7 +360,6 @@ static int mchp_corespi_probe(struct platform_device *pdev)
|
|||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 32);
|
||||
host->transfer_one = mchp_corespi_transfer_one;
|
||||
host->set_cs = mchp_corespi_set_cs;
|
||||
host->dev.of_node = dev->of_node;
|
||||
|
||||
ret = of_property_read_u32(dev->of_node, "fifo-depth", &spi->fifo_depth);
|
||||
if (ret)
|
||||
|
|
|
|||
|
|
@ -430,7 +430,6 @@ static int mpc52xx_spi_probe(struct platform_device *op)
|
|||
host->transfer = mpc52xx_spi_transfer;
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->dev.of_node = op->dev.of_node;
|
||||
|
||||
platform_set_drvdata(op, host);
|
||||
|
||||
|
|
|
|||
|
|
@ -550,7 +550,6 @@ static int mpfs_spi_probe(struct platform_device *pdev)
|
|||
host->transfer_one = mpfs_spi_transfer_one;
|
||||
host->prepare_message = mpfs_spi_prepare_message;
|
||||
host->set_cs = mpfs_spi_set_cs;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
spi = spi_controller_get_devdata(host);
|
||||
|
||||
|
|
|
|||
|
|
@ -1184,7 +1184,6 @@ static int mtk_spi_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
|
||||
host->auto_runtime_pm = true;
|
||||
host->dev.of_node = dev->of_node;
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
|
||||
|
||||
host->set_cs = mtk_spi_set_cs;
|
||||
|
|
|
|||
|
|
@ -348,7 +348,6 @@ static int mt7621_spi_probe(struct platform_device *pdev)
|
|||
host->set_cs = mt7621_spi_set_native_cs;
|
||||
host->transfer_one = mt7621_spi_transfer_one;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->max_native_cs = MT7621_NATIVE_CS_COUNT;
|
||||
host->num_chipselect = MT7621_NATIVE_CS_COUNT;
|
||||
host->use_gpio_descriptors = true;
|
||||
|
|
|
|||
|
|
@ -851,7 +851,6 @@ static int mtk_nor_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
ctlr->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->max_message_size = mtk_max_msg_size;
|
||||
ctlr->mem_ops = &mtk_nor_mem_ops;
|
||||
ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | SPI_TX_DUAL | SPI_TX_QUAD;
|
||||
|
|
|
|||
|
|
@ -1448,7 +1448,6 @@ static int mtk_snand_probe(struct platform_device *pdev)
|
|||
ctlr->mem_caps = &mtk_snand_mem_caps;
|
||||
ctlr->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
ctlr->mode_bits = SPI_RX_DUAL | SPI_RX_QUAD | SPI_TX_DUAL | SPI_TX_QUAD;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ret = spi_register_controller(ctlr);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "spi_register_controller failed.\n");
|
||||
|
|
|
|||
|
|
@ -161,7 +161,6 @@ static int spi_mux_probe(struct spi_device *spi)
|
|||
ctlr->setup = spi_mux_setup;
|
||||
ctlr->num_chipselect = mux_control_states(priv->mux);
|
||||
ctlr->bus_num = -1;
|
||||
ctlr->dev.of_node = spi->dev.of_node;
|
||||
ctlr->must_async = true;
|
||||
ctlr->defer_optimize_message = true;
|
||||
|
||||
|
|
|
|||
|
|
@ -768,7 +768,6 @@ static int mxic_spi_probe(struct platform_device *pdev)
|
|||
mxic = spi_controller_get_devdata(host);
|
||||
mxic->dev = &pdev->dev;
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
mxic->ps_clk = devm_clk_get(&pdev->dev, "ps_clk");
|
||||
if (IS_ERR(mxic->ps_clk))
|
||||
|
|
|
|||
|
|
@ -746,7 +746,6 @@ static int npcm_fiu_probe(struct platform_device *pdev)
|
|||
ctrl->bus_num = -1;
|
||||
ctrl->mem_ops = &npcm_fiu_mem_ops;
|
||||
ctrl->num_chipselect = fiu->info->max_cs;
|
||||
ctrl->dev.of_node = dev->of_node;
|
||||
|
||||
return devm_spi_register_controller(dev, ctrl);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -401,7 +401,6 @@ static int npcm_pspi_probe(struct platform_device *pdev)
|
|||
host->max_speed_hz = DIV_ROUND_UP(clk_hz, NPCM_PSPI_MIN_CLK_DIVIDER);
|
||||
host->min_speed_hz = DIV_ROUND_UP(clk_hz, NPCM_PSPI_MAX_CLK_DIVIDER);
|
||||
host->mode_bits = SPI_CPHA | SPI_CPOL;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = -1;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8) | SPI_BPW_MASK(16);
|
||||
host->transfer_one = npcm_pspi_transfer_one;
|
||||
|
|
|
|||
|
|
@ -1290,7 +1290,6 @@ static int nxp_xspi_probe(struct platform_device *pdev)
|
|||
ctlr->num_chipselect = NXP_XSPI_MAX_CHIPSELECT;
|
||||
ctlr->mem_ops = &nxp_xspi_mem_ops;
|
||||
ctlr->mem_caps = &nxp_xspi_mem_caps;
|
||||
ctlr->dev.of_node = dev->of_node;
|
||||
|
||||
return devm_spi_register_controller(dev, ctlr);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -192,7 +192,6 @@ static int tiny_spi_of_probe(struct platform_device *pdev)
|
|||
|
||||
if (!np)
|
||||
return 0;
|
||||
hw->bitbang.ctlr->dev.of_node = pdev->dev.of_node;
|
||||
if (!of_property_read_u32(np, "clock-frequency", &val))
|
||||
hw->freq = val;
|
||||
if (!of_property_read_u32(np, "baud-width", &val))
|
||||
|
|
|
|||
|
|
@ -780,7 +780,6 @@ static int orion_spi_probe(struct platform_device *pdev)
|
|||
if (status < 0)
|
||||
goto out_rel_pm;
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
status = spi_register_controller(host);
|
||||
if (status < 0)
|
||||
goto out_rel_pm;
|
||||
|
|
|
|||
|
|
@ -1893,7 +1893,6 @@ static int pl022_probe(struct amba_device *adev, const struct amba_id *id)
|
|||
host->handle_err = pl022_handle_err;
|
||||
host->unprepare_transfer_hardware = pl022_unprepare_transfer_hardware;
|
||||
host->rt = platform_info->rt;
|
||||
host->dev.of_node = dev->of_node;
|
||||
host->use_gpio_descriptors = true;
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -763,7 +763,6 @@ static int qcom_qspi_probe(struct platform_device *pdev)
|
|||
host->dma_alignment = QSPI_ALIGN_REQ;
|
||||
host->num_chipselect = QSPI_NUM_CS;
|
||||
host->bus_num = -1;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->mode_bits = SPI_MODE_0 |
|
||||
SPI_TX_DUAL | SPI_RX_DUAL |
|
||||
SPI_TX_QUAD | SPI_RX_QUAD;
|
||||
|
|
|
|||
|
|
@ -1583,7 +1583,6 @@ static int qcom_spi_probe(struct platform_device *pdev)
|
|||
ctlr->num_chipselect = QPIC_QSPI_NUM_CS;
|
||||
ctlr->mem_ops = &qcom_spi_mem_ops;
|
||||
ctlr->mem_caps = &qcom_spi_mem_caps;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->mode_bits = SPI_TX_DUAL | SPI_RX_DUAL |
|
||||
SPI_TX_QUAD | SPI_RX_QUAD;
|
||||
|
||||
|
|
|
|||
|
|
@ -1091,7 +1091,6 @@ static int spi_qup_probe(struct platform_device *pdev)
|
|||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(4, 32);
|
||||
host->max_speed_hz = max_freq;
|
||||
host->transfer_one = spi_qup_transfer_one;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->auto_runtime_pm = true;
|
||||
host->dma_alignment = dma_get_cache_alignment();
|
||||
host->max_dma_len = SPI_MAX_XFER;
|
||||
|
|
|
|||
|
|
@ -160,7 +160,6 @@ static int rb4xx_spi_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(ahb_clk))
|
||||
return PTR_ERR(ahb_clk);
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = 0;
|
||||
host->num_chipselect = 3;
|
||||
host->mode_bits = SPI_TX_DUAL;
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ static int realtek_rtl_spi_probe(struct platform_device *pdev)
|
|||
|
||||
init_hw(rtspi);
|
||||
|
||||
ctrl->dev.of_node = pdev->dev.of_node;
|
||||
ctrl->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
ctrl->set_cs = rt_set_cs;
|
||||
ctrl->transfer_one = transfer_one;
|
||||
|
|
|
|||
|
|
@ -622,7 +622,6 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
|
|||
host->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
host->mem_ops = &rockchip_sfc_mem_ops;
|
||||
host->mem_caps = &rockchip_sfc_mem_caps;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->mode_bits = SPI_TX_QUAD | SPI_TX_DUAL | SPI_RX_QUAD | SPI_RX_DUAL;
|
||||
host->max_speed_hz = SFC_MAX_SPEED;
|
||||
host->num_chipselect = SFC_MAX_CHIPSELECT_NUM;
|
||||
|
|
|
|||
|
|
@ -858,7 +858,6 @@ static int rockchip_spi_probe(struct platform_device *pdev)
|
|||
ctlr->num_chipselect = num_cs;
|
||||
ctlr->use_gpio_descriptors = true;
|
||||
}
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->bits_per_word_mask = SPI_BPW_MASK(16) | SPI_BPW_MASK(8) | SPI_BPW_MASK(4);
|
||||
ctlr->min_speed_hz = rs->freq / BAUDR_SCKDV_MAX;
|
||||
ctlr->max_speed_hz = min(rs->freq / BAUDR_SCKDV_MIN, MAX_SCLK_OUT);
|
||||
|
|
|
|||
|
|
@ -1338,7 +1338,6 @@ static int rspi_probe(struct platform_device *pdev)
|
|||
ctlr->min_speed_hz = DIV_ROUND_UP(clksrc, ops->max_div);
|
||||
ctlr->max_speed_hz = DIV_ROUND_UP(clksrc, ops->min_div);
|
||||
ctlr->flags = ops->flags;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->use_gpio_descriptors = true;
|
||||
ctlr->max_native_cs = rspi->ops->num_hw_ss;
|
||||
|
||||
|
|
|
|||
|
|
@ -1295,7 +1295,6 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
|
|||
sdd->tx_dma.direction = DMA_MEM_TO_DEV;
|
||||
sdd->rx_dma.direction = DMA_DEV_TO_MEM;
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = -1;
|
||||
host->setup = s3c64xx_spi_setup;
|
||||
host->cleanup = s3c64xx_spi_cleanup;
|
||||
|
|
|
|||
|
|
@ -455,7 +455,6 @@ static int sg2044_spifmc_probe(struct platform_device *pdev)
|
|||
return PTR_ERR(spifmc->io_base);
|
||||
|
||||
ctrl->num_chipselect = 1;
|
||||
ctrl->dev.of_node = pdev->dev.of_node;
|
||||
ctrl->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
ctrl->auto_runtime_pm = false;
|
||||
ctrl->mem_ops = &sg2044_spifmc_mem_ops;
|
||||
|
|
|
|||
|
|
@ -253,7 +253,6 @@ static int hspi_probe(struct platform_device *pdev)
|
|||
|
||||
ctlr->bus_num = pdev->id;
|
||||
ctlr->mode_bits = SPI_CPOL | SPI_CPHA;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->auto_runtime_pm = true;
|
||||
ctlr->transfer_one_message = hspi_transfer_one_message;
|
||||
ctlr->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
|
|
|
|||
|
|
@ -1276,7 +1276,6 @@ static int sh_msiof_spi_probe(struct platform_device *pdev)
|
|||
ctlr->flags = chipdata->ctlr_flags;
|
||||
ctlr->bus_num = pdev->id;
|
||||
ctlr->num_chipselect = p->info->num_chipselect;
|
||||
ctlr->dev.of_node = dev->of_node;
|
||||
ctlr->setup = sh_msiof_spi_setup;
|
||||
ctlr->prepare_message = sh_msiof_prepare_message;
|
||||
ctlr->target_abort = sh_msiof_target_abort;
|
||||
|
|
|
|||
|
|
@ -368,7 +368,6 @@ static int sifive_spi_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
/* Define our host */
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = pdev->id;
|
||||
host->num_chipselect = num_cs;
|
||||
host->mode_bits = SPI_CPHA | SPI_CPOL
|
||||
|
|
|
|||
|
|
@ -395,7 +395,6 @@ static int mtk_spi_slave_probe(struct platform_device *pdev)
|
|||
}
|
||||
|
||||
ctlr->auto_runtime_pm = true;
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->mode_bits = SPI_CPOL | SPI_CPHA;
|
||||
ctlr->mode_bits |= SPI_LSB_FIRST;
|
||||
|
||||
|
|
|
|||
|
|
@ -628,7 +628,6 @@ static int f_ospi_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
}
|
||||
ctlr->num_chipselect = num_cs;
|
||||
ctlr->dev.of_node = dev->of_node;
|
||||
|
||||
ospi = spi_controller_get_devdata(ctlr);
|
||||
ospi->dev = dev;
|
||||
|
|
|
|||
|
|
@ -571,7 +571,6 @@ static int sprd_adi_probe(struct platform_device *pdev)
|
|||
if (sadi->data->wdg_rst)
|
||||
sadi->data->wdg_rst(sadi);
|
||||
|
||||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->bus_num = pdev->id;
|
||||
ctlr->num_chipselect = num_chipselect;
|
||||
ctlr->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
|
|
|
|||
|
|
@ -936,7 +936,6 @@ static int sprd_spi_probe(struct platform_device *pdev)
|
|||
|
||||
ss->phy_base = res->start;
|
||||
ss->dev = &pdev->dev;
|
||||
sctlr->dev.of_node = pdev->dev.of_node;
|
||||
sctlr->mode_bits = SPI_CPOL | SPI_CPHA | SPI_3WIRE | SPI_TX_DUAL;
|
||||
sctlr->bus_num = pdev->id;
|
||||
sctlr->set_cs = sprd_spi_chipselect;
|
||||
|
|
|
|||
|
|
@ -942,7 +942,6 @@ static int stm32_ospi_probe(struct platform_device *pdev)
|
|||
ctrl->use_gpio_descriptors = true;
|
||||
ctrl->transfer_one_message = stm32_ospi_transfer_one_message;
|
||||
ctrl->num_chipselect = STM32_OSPI_MAX_NORCHIP;
|
||||
ctrl->dev.of_node = dev->of_node;
|
||||
|
||||
pm_runtime_enable(ospi->dev);
|
||||
pm_runtime_set_autosuspend_delay(ospi->dev, STM32_AUTOSUSPEND_DELAY);
|
||||
|
|
|
|||
|
|
@ -860,7 +860,6 @@ static int stm32_qspi_probe(struct platform_device *pdev)
|
|||
ctrl->use_gpio_descriptors = true;
|
||||
ctrl->transfer_one_message = stm32_qspi_transfer_one_message;
|
||||
ctrl->num_chipselect = STM32_QSPI_MAX_NORCHIP;
|
||||
ctrl->dev.of_node = dev->of_node;
|
||||
|
||||
pm_runtime_set_autosuspend_delay(dev, STM32_AUTOSUSPEND_DELAY);
|
||||
pm_runtime_use_autosuspend(dev);
|
||||
|
|
|
|||
|
|
@ -2464,7 +2464,6 @@ static int stm32_spi_probe(struct platform_device *pdev)
|
|||
goto err_clk_disable;
|
||||
}
|
||||
|
||||
ctrl->dev.of_node = pdev->dev.of_node;
|
||||
ctrl->auto_runtime_pm = true;
|
||||
ctrl->bus_num = pdev->id;
|
||||
ctrl->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH | SPI_LSB_FIRST |
|
||||
|
|
|
|||
|
|
@ -471,7 +471,6 @@ static int sun4i_spi_probe(struct platform_device *pdev)
|
|||
host->num_chipselect = 4;
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->auto_runtime_pm = true;
|
||||
host->max_transfer_size = sun4i_spi_max_transfer_size;
|
||||
|
||||
|
|
|
|||
|
|
@ -673,7 +673,6 @@ static int sun6i_spi_probe(struct platform_device *pdev)
|
|||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST |
|
||||
sspi->cfg->mode_bits;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->auto_runtime_pm = true;
|
||||
host->max_transfer_size = sun6i_spi_max_transfer_size;
|
||||
|
||||
|
|
|
|||
|
|
@ -1412,7 +1412,6 @@ static int tegra_spi_probe(struct platform_device *pdev)
|
|||
goto exit_pm_disable;
|
||||
}
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
ret = devm_spi_register_controller(&pdev->dev, host);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "can not register to host err %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -505,7 +505,6 @@ static int tegra_sflash_probe(struct platform_device *pdev)
|
|||
tegra_sflash_writel(tsd, tsd->def_command_reg, SPI_COMMAND);
|
||||
pm_runtime_put(&pdev->dev);
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
ret = devm_spi_register_controller(&pdev->dev, host);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "can not register to host err %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -1103,7 +1103,6 @@ static int tegra_slink_probe(struct platform_device *pdev)
|
|||
tegra_slink_writel(tspi, tspi->def_command_reg, SLINK_COMMAND);
|
||||
tegra_slink_writel(tspi, tspi->def_command2_reg, SLINK_COMMAND2);
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
ret = spi_register_controller(host);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "can not register to host err %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -1743,7 +1743,6 @@ static int tegra_qspi_probe(struct platform_device *pdev)
|
|||
goto exit_pm_disable;
|
||||
}
|
||||
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
ret = spi_register_controller(host);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "failed to register host: %d\n", ret);
|
||||
|
|
|
|||
|
|
@ -775,7 +775,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
|
|||
host->setup = ti_qspi_setup;
|
||||
host->auto_runtime_pm = true;
|
||||
host->transfer_one_message = ti_qspi_start_transfer_one;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bits_per_word_mask = SPI_BPW_MASK(32) | SPI_BPW_MASK(16) |
|
||||
SPI_BPW_MASK(8);
|
||||
host->mem_ops = &ti_qspi_mem_ops;
|
||||
|
|
|
|||
|
|
@ -697,7 +697,6 @@ static int uniphier_spi_probe(struct platform_device *pdev)
|
|||
host->max_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MIN_CLK_DIVIDER);
|
||||
host->min_speed_hz = DIV_ROUND_UP(clk_rate, SSI_MAX_CLK_DIVIDER);
|
||||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH | SPI_LSB_FIRST;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
host->bus_num = pdev->id;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 32);
|
||||
|
||||
|
|
|
|||
|
|
@ -471,7 +471,6 @@ static int wpcm_fiu_probe(struct platform_device *pdev)
|
|||
ctrl->bus_num = -1;
|
||||
ctrl->mem_ops = &wpcm_fiu_mem_ops;
|
||||
ctrl->num_chipselect = 4;
|
||||
ctrl->dev.of_node = dev->of_node;
|
||||
|
||||
/*
|
||||
* The FIU doesn't include a clock divider, the clock is entirely
|
||||
|
|
|
|||
|
|
@ -260,7 +260,6 @@ static int spi_xcomm_probe(struct i2c_client *i2c)
|
|||
host->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
host->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
host->transfer_one_message = spi_xcomm_transfer_one;
|
||||
host->dev.of_node = i2c->dev.of_node;
|
||||
|
||||
ret = devm_spi_register_controller(&i2c->dev, host);
|
||||
if (ret < 0)
|
||||
|
|
|
|||
|
|
@ -447,7 +447,6 @@ static int xilinx_spi_probe(struct platform_device *pdev)
|
|||
|
||||
host->bus_num = pdev->id;
|
||||
host->num_chipselect = num_cs;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
/*
|
||||
* Detect endianess on the IP via loop bit in CR. Detection
|
||||
|
|
|
|||
|
|
@ -409,7 +409,6 @@ static int xlp_spi_probe(struct platform_device *pdev)
|
|||
host->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
|
||||
host->setup = xlp_spi_setup;
|
||||
host->transfer_one = xlp_spi_transfer_one;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
init_completion(&xspi->done);
|
||||
spi_controller_set_devdata(host, xspi);
|
||||
|
|
|
|||
|
|
@ -90,7 +90,6 @@ static int xtfpga_spi_probe(struct platform_device *pdev)
|
|||
host->flags = SPI_CONTROLLER_NO_RX;
|
||||
host->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16);
|
||||
host->bus_num = pdev->dev.id;
|
||||
host->dev.of_node = pdev->dev.of_node;
|
||||
|
||||
xspi = spi_controller_get_devdata(host);
|
||||
xspi->bitbang.ctlr = host;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue