]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: Drop duplicate fwnode assignment
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 12 Jan 2026 20:21:25 +0000 (21:21 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 19 Jan 2026 14:42:53 +0000 (14:42 +0000)
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>
drivers/spi/spi-hisi-kunpeng.c
drivers/spi/spi-synquacer.c

index dadf558dd9c0c66bcfa64174a6fcad42dd4b6006..afe51adcc507bc514eb66cfebcb725057b9d1b5d 100644 (file)
@@ -497,7 +497,6 @@ static int hisi_spi_probe(struct platform_device *pdev)
        host->cleanup = hisi_spi_cleanup;
        host->transfer_one = hisi_spi_transfer_one;
        host->handle_err = hisi_spi_handle_err;
-       host->dev.fwnode = dev->fwnode;
        host->min_speed_hz = DIV_ROUND_UP(host->max_speed_hz, CLK_DIV_MAX);
 
        hisi_spi_hw_init(hs);
index eaf560487591d9befaab64266b808b6549650816..d0a875249910da2a993f65fea494a733d178946a 100644 (file)
@@ -600,7 +600,6 @@ static irqreturn_t sq_spi_tx_handler(int irq, void *priv)
 
 static int synquacer_spi_probe(struct platform_device *pdev)
 {
-       struct device_node *np = pdev->dev.of_node;
        struct spi_controller *host;
        struct synquacer_spi *sspi;
        int ret;
@@ -699,8 +698,6 @@ static int synquacer_spi_probe(struct platform_device *pdev)
                goto disable_clk;
        }
 
-       host->dev.of_node = np;
-       host->dev.fwnode = pdev->dev.fwnode;
        host->auto_runtime_pm = true;
        host->bus_num = pdev->id;