Commit 3974a585 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Mark Brown
Browse files

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: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarWilliam Zhang <william.zhang@broadcom.com>
Acked-by: Chen-Yu Tsai <wens@kernel.org> # sun4i, sun6i
Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
Reviewed-by: default avatarAmelie Delaunay <amelie.delaunay@foss.st.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> # renesas
Reviewed-by: default avatarMartin Blumenstingl <martin.blumenstingl@googlemail.com>
Reviewed-by: default avatarPatrice Chotard <patrice.chotard@foss.st.com>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260112203534.4186261-3-andriy.shevchenko@linux.intel.com


Tested-by: default avatarPrajna Rajendra Kumar <prajna.rajendrakumar@microchip.com>
Reviewed-by: default avatarLinus Walleij <linusw@kernel.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f2d1a331
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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 */
+0 −2
Original line number Diff line number Diff line
@@ -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;

+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;
+0 −1
Original line number Diff line number Diff line
@@ -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;
Loading