提交 5586c09e 编写于 作者: M Michal Simek 提交者: Mark Brown

spi/xilinx: Remove CONFIG_OF from the driver

dev.of_node is in struct device all the time.
Signed-off-by: NMichal Simek <michal.simek@xilinx.com>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 7cb2abd0
...@@ -356,7 +356,6 @@ static int xilinx_spi_probe(struct platform_device *pdev) ...@@ -356,7 +356,6 @@ static int xilinx_spi_probe(struct platform_device *pdev)
bits_per_word = pdata->bits_per_word; bits_per_word = pdata->bits_per_word;
} }
#ifdef CONFIG_OF
if (pdev->dev.of_node) { if (pdev->dev.of_node) {
const __be32 *prop; const __be32 *prop;
int len; int len;
...@@ -367,7 +366,6 @@ static int xilinx_spi_probe(struct platform_device *pdev) ...@@ -367,7 +366,6 @@ static int xilinx_spi_probe(struct platform_device *pdev)
if (prop && len >= sizeof(*prop)) if (prop && len >= sizeof(*prop))
num_cs = __be32_to_cpup(prop); num_cs = __be32_to_cpup(prop);
} }
#endif
if (!num_cs) { if (!num_cs) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册