Unverified Commit 4cc4ace7 authored by Abdurrahman Hussain's avatar Abdurrahman Hussain Committed by Mark Brown
Browse files

spi: xilinx: use device property accessors.

parent 4c9d5379
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -405,9 +405,9 @@ 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",
		device_property_read_u32(&pdev->dev, "xlnx,num-ss-bits",
					 &num_cs);
		ret = of_property_read_u32(pdev->dev.of_node,
		ret = device_property_read_u32(&pdev->dev,
					       "xlnx,num-transfer-bits",
					       &bits_per_word);
		if (ret)