projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cb2abd
)
spi/xilinx: Remove CONFIG_OF from the driver
author
Michal Simek
<michal.simek@xilinx.com>
Mon, 8 Jul 2013 13:29:14 +0000
(15:29 +0200)
committer
Mark Brown
<broonie@linaro.org>
Mon, 15 Jul 2013 10:45:53 +0000
(11:45 +0100)
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>
drivers/spi/spi-xilinx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-xilinx.c
b/drivers/spi/spi-xilinx.c
index 3026efa5a59f3846594f1496064d53155f6b8d93..2e1d8a4ac37595fe4bb7499638bf08c73b39298f 100644
(file)
--- 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)
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,