Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5586c09e authored by Michal Simek's avatar Michal Simek Committed by Mark Brown
Browse files

spi/xilinx: Remove CONFIG_OF from the driver



dev.of_node is in struct device all the time.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7cb2abd0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -356,7 +356,6 @@ static int xilinx_spi_probe(struct platform_device *pdev)
		bits_per_word = pdata->bits_per_word;
	}

#ifdef CONFIG_OF
	if (pdev->dev.of_node) {
		const __be32 *prop;
		int len;
@@ -367,7 +366,6 @@ static int xilinx_spi_probe(struct platform_device *pdev)
		if (prop && len >= sizeof(*prop))
			num_cs = __be32_to_cpup(prop);
	}
#endif

	if (!num_cs) {
		dev_err(&pdev->dev,