public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/3] spi: xilinx: use device property accessors.
@ 2026-01-16 23:35 Abdurrahman Hussain
  2026-01-16 23:35 ` [PATCH 2/3] spi: xilinx: make irq optional Abdurrahman Hussain
  2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
  0 siblings, 2 replies; 5+ messages in thread
From: Abdurrahman Hussain @ 2026-01-16 23:35 UTC (permalink / raw)
  To: Mark Brown, Michal Simek, Andrew Lunn
  Cc: linux-spi, linux-arm-kernel, linux-kernel, Abdurrahman Hussain

This makes the driver work on non-OF platforms.

Signed-off-by: Abdurrahman Hussain <abdurrahman@nexthop.ai>
---
 drivers/spi/spi-xilinx.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index c86dc56f38b4..c4b70e95b695 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -405,11 +405,11 @@ static int xilinx_spi_probe(struct platform_device *pdev)
 		bits_per_word = pdata->bits_per_word;
 		force_irq = pdata->force_irq;
 	} else {
-		of_property_read_u32(pdev->dev.of_node, "xlnx,num-ss-bits",
-					  &num_cs);
-		ret = of_property_read_u32(pdev->dev.of_node,
-					   "xlnx,num-transfer-bits",
-					   &bits_per_word);
+		device_property_read_u32(&pdev->dev, "xlnx,num-ss-bits",
+					 &num_cs);
+		ret = device_property_read_u32(&pdev->dev,
+					       "xlnx,num-transfer-bits",
+					       &bits_per_word);
 		if (ret)
 			bits_per_word = 8;
 	}
-- 
2.52.0



^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-17 10:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 23:35 [PATCH 1/3] spi: xilinx: use device property accessors Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 2/3] spi: xilinx: make irq optional Abdurrahman Hussain
2026-01-16 23:35 ` [PATCH 3/3] spi: dt-bindings: xilinx: make interrupts optional Abdurrahman Hussain
2026-01-17  0:41   ` Andrew Lunn
2026-01-17 10:48   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox