|
@@ -351,14 +351,12 @@ static irqreturn_t xilinx_spi_irq(int irq, void *dev_id)
|
|
return IRQ_HANDLED;
|
|
return IRQ_HANDLED;
|
|
}
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_OF
|
|
|
|
static const struct of_device_id xilinx_spi_of_match[] = {
|
|
static const struct of_device_id xilinx_spi_of_match[] = {
|
|
{ .compatible = "xlnx,xps-spi-2.00.a", },
|
|
{ .compatible = "xlnx,xps-spi-2.00.a", },
|
|
{ .compatible = "xlnx,xps-spi-2.00.b", },
|
|
{ .compatible = "xlnx,xps-spi-2.00.b", },
|
|
{}
|
|
{}
|
|
};
|
|
};
|
|
MODULE_DEVICE_TABLE(of, xilinx_spi_of_match);
|
|
MODULE_DEVICE_TABLE(of, xilinx_spi_of_match);
|
|
-#endif
|
|
|
|
|
|
|
|
struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
|
|
struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
|
|
u32 irq, s16 bus_num, int num_cs, int little_endian, int bits_per_word)
|
|
u32 irq, s16 bus_num, int num_cs, int little_endian, int bits_per_word)
|
|
@@ -394,9 +392,7 @@ struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
|
|
|
|
|
|
master->bus_num = bus_num;
|
|
master->bus_num = bus_num;
|
|
master->num_chipselect = num_cs;
|
|
master->num_chipselect = num_cs;
|
|
-#ifdef CONFIG_OF
|
|
|
|
master->dev.of_node = dev->of_node;
|
|
master->dev.of_node = dev->of_node;
|
|
-#endif
|
|
|
|
|
|
|
|
xspi->mem = *mem;
|
|
xspi->mem = *mem;
|
|
xspi->irq = irq;
|
|
xspi->irq = irq;
|
|
@@ -539,9 +535,7 @@ static struct platform_driver xilinx_spi_driver = {
|
|
.driver = {
|
|
.driver = {
|
|
.name = XILINX_SPI_NAME,
|
|
.name = XILINX_SPI_NAME,
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
-#ifdef CONFIG_OF
|
|
|
|
.of_match_table = xilinx_spi_of_match,
|
|
.of_match_table = xilinx_spi_of_match,
|
|
-#endif
|
|
|
|
},
|
|
},
|
|
};
|
|
};
|
|
|
|
|