Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

spi: Drop duplicate fwnode assignment

The SPI core provides the default fwnode for the controller,
inherited from the actual (parent) device. No need to repeat it
in the driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20260112203534.4186261-4-andriy.shevchenko@linux.intel.com
Reviewed-by: Linus Walleij <linusw@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
103c510e 3974a585

-4
-1
drivers/spi/spi-hisi-kunpeng.c
··· 497 497 host->cleanup = hisi_spi_cleanup; 498 498 host->transfer_one = hisi_spi_transfer_one; 499 499 host->handle_err = hisi_spi_handle_err; 500 - host->dev.fwnode = dev->fwnode; 501 500 host->min_speed_hz = DIV_ROUND_UP(host->max_speed_hz, CLK_DIV_MAX); 502 501 503 502 hisi_spi_hw_init(hs);
-3
drivers/spi/spi-synquacer.c
··· 600 600 601 601 static int synquacer_spi_probe(struct platform_device *pdev) 602 602 { 603 - struct device_node *np = pdev->dev.of_node; 604 603 struct spi_controller *host; 605 604 struct synquacer_spi *sspi; 606 605 int ret; ··· 698 699 goto disable_clk; 699 700 } 700 701 701 - host->dev.of_node = np; 702 - host->dev.fwnode = pdev->dev.fwnode; 703 702 host->auto_runtime_pm = true; 704 703 host->bus_num = pdev->id; 705 704