Skip to content

Commit

Permalink
spi/xilinx: Remove CONFIG_OF from the driver
Browse files Browse the repository at this point in the history
dev.of_node is in struct device all the time.

Signed-off-by: Michal Simek <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
Michal Simek authored and broonie committed Jul 15, 2013
1 parent 7cb2abd commit 5586c09
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-xilinx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit 5586c09

Please sign in to comment.