Skip to content

Commit 103c510

Browse files
andy-shevbroonie
authored andcommitted
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>
1 parent 3974a58 commit 103c510

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/spi/spi-hisi-kunpeng.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ static int hisi_spi_probe(struct platform_device *pdev)
497497
host->cleanup = hisi_spi_cleanup;
498498
host->transfer_one = hisi_spi_transfer_one;
499499
host->handle_err = hisi_spi_handle_err;
500-
host->dev.fwnode = dev->fwnode;
501500
host->min_speed_hz = DIV_ROUND_UP(host->max_speed_hz, CLK_DIV_MAX);
502501

503502
hisi_spi_hw_init(hs);

drivers/spi/spi-synquacer.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ static irqreturn_t sq_spi_tx_handler(int irq, void *priv)
600600

601601
static int synquacer_spi_probe(struct platform_device *pdev)
602602
{
603-
struct device_node *np = pdev->dev.of_node;
604603
struct spi_controller *host;
605604
struct synquacer_spi *sspi;
606605
int ret;
@@ -699,8 +698,6 @@ static int synquacer_spi_probe(struct platform_device *pdev)
699698
goto disable_clk;
700699
}
701700

702-
host->dev.of_node = np;
703-
host->dev.fwnode = pdev->dev.fwnode;
704701
host->auto_runtime_pm = true;
705702
host->bus_num = pdev->id;
706703

0 commit comments

Comments
 (0)