diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-07-08 09:29:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-07-15 06:45:53 -0400 |
commit | 5586c09e19b0dea5c1b4fd9838ca73575def223f (patch) | |
tree | d25f38a9f0e642561b9fc6410d4343d4c9a6cf84 | |
parent | 7cb2abd05fe1f9aea70b8ee38004b60bc882ffb5 (diff) |
spi/xilinx: Remove CONFIG_OF from the driver
dev.of_node is in struct device all the time.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-xilinx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c index 3026efa5a59f..2e1d8a4ac375 100644 --- a/drivers/spi/spi-xilinx.c +++ b/drivers/spi/spi-xilinx.c | |||
@@ -356,7 +356,6 @@ static int xilinx_spi_probe(struct platform_device *pdev) | |||
356 | bits_per_word = pdata->bits_per_word; | 356 | bits_per_word = pdata->bits_per_word; |
357 | } | 357 | } |
358 | 358 | ||
359 | #ifdef CONFIG_OF | ||
360 | if (pdev->dev.of_node) { | 359 | if (pdev->dev.of_node) { |
361 | const __be32 *prop; | 360 | const __be32 *prop; |
362 | int len; | 361 | int len; |
@@ -367,7 +366,6 @@ static int xilinx_spi_probe(struct platform_device *pdev) | |||
367 | if (prop && len >= sizeof(*prop)) | 366 | if (prop && len >= sizeof(*prop)) |
368 | num_cs = __be32_to_cpup(prop); | 367 | num_cs = __be32_to_cpup(prop); |
369 | } | 368 | } |
370 | #endif | ||
371 | 369 | ||
372 | if (!num_cs) { | 370 | if (!num_cs) { |
373 | dev_err(&pdev->dev, | 371 | dev_err(&pdev->dev, |