diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2018-11-15 11:32:09 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-11-16 19:06:24 -0800 |
commit | f0915dfc44365b487a720d447ad3faa66de5205c (patch) | |
tree | b8fdc1af91715bf855d12ca0c3dd1050194a8440 /drivers/spi/spi-pxa2xx.c | |
parent | d57e79601bc587f140a9bbb102493ad86f648ae0 (diff) | |
download | linux-f0915dfc44365b487a720d447ad3faa66de5205c.tar.gz linux-f0915dfc44365b487a720d447ad3faa66de5205c.tar.bz2 linux-f0915dfc44365b487a720d447ad3faa66de5205c.zip |
spi: pxa2xx: Fix '"CONFIG_OF" is not defined' warning
A careless oversight. Sorry.
Fixes: 0a897143b7c9 ("spi: pxa2xx: Add slave mode support")
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.c')
-rw-r--r-- | drivers/spi/spi-pxa2xx.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/spi/spi-pxa2xx.c b/drivers/spi/spi-pxa2xx.c index e6a606354f62..d84b893a64d7 100644 --- a/drivers/spi/spi-pxa2xx.c +++ b/drivers/spi/spi-pxa2xx.c @@ -1555,19 +1555,13 @@ pxa2xx_spi_init_pdata(struct platform_device *pdev) } #endif -#if CONFIG_OF - if (of_id) { - pdata->is_slave = of_property_read_bool(pdev->dev.of_node, - "spi-slave"); - } -#endif - ssp->clk = devm_clk_get(&pdev->dev, NULL); ssp->irq = platform_get_irq(pdev, 0); ssp->type = type; ssp->pdev = pdev; ssp->port_id = pxa2xx_spi_get_port_id(adev); + pdata->is_slave = of_property_read_bool(pdev->dev.of_node, "spi-slave"); pdata->num_chipselect = 1; pdata->enable_dma = true; |