lkml.org 
[lkml]   [2013]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v1 1/4] spi/xilinx: Remove CONFIG_OF from the driver
Date
dev.of_node is in struct device all the time.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---
drivers/spi/spi-xilinx.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/spi/spi-xilinx.c b/drivers/spi/spi-xilinx.c
index 35503b4..f3de5e5 100644
--- a/drivers/spi/spi-xilinx.c
+++ b/drivers/spi/spi-xilinx.c
@@ -375,7 +375,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;
@@ -386,7 +385,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,
--
1.8.2.3
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2013-07-10 23:16    [W:0.108 / U:0.752 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site