Merge branch 'devicetree/next' into spi/next
To pick up removal of #ifdef around .of_match_table
This commit is contained in:
@ -1557,9 +1557,7 @@ static int __devinit pxa2xx_spi_probe(struct platform_device *pdev)
|
||||
drv_data->ssp = ssp;
|
||||
|
||||
master->dev.parent = &pdev->dev;
|
||||
#ifdef CONFIG_OF
|
||||
master->dev.of_node = pdev->dev.of_node;
|
||||
#endif
|
||||
/* the spi->mode bits understood by this driver: */
|
||||
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
|
||||
|
||||
|
@ -98,9 +98,7 @@ static int __devinit ce4100_spi_probe(struct pci_dev *dev,
|
||||
pdev->dev.parent = &dev->dev;
|
||||
pdev->dev.platform_data = &spi_info->spi_pdata;
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
pdev->dev.of_node = dev->dev.of_node;
|
||||
#endif
|
||||
pdev->dev.release = plat_dev_release;
|
||||
|
||||
spi_pdata->num_chipselect = dev->devfn;
|
||||
|
@ -351,14 +351,12 @@ static irqreturn_t xilinx_spi_irq(int irq, void *dev_id)
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
static const struct of_device_id xilinx_spi_of_match[] = {
|
||||
{ .compatible = "xlnx,xps-spi-2.00.a", },
|
||||
{ .compatible = "xlnx,xps-spi-2.00.b", },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, xilinx_spi_of_match);
|
||||
#endif
|
||||
|
||||
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)
|
||||
@ -394,9 +392,7 @@ struct spi_master *xilinx_spi_init(struct device *dev, struct resource *mem,
|
||||
|
||||
master->bus_num = bus_num;
|
||||
master->num_chipselect = num_cs;
|
||||
#ifdef CONFIG_OF
|
||||
master->dev.of_node = dev->of_node;
|
||||
#endif
|
||||
|
||||
xspi->mem = *mem;
|
||||
xspi->irq = irq;
|
||||
@ -539,9 +535,7 @@ static struct platform_driver xilinx_spi_driver = {
|
||||
.driver = {
|
||||
.name = XILINX_SPI_NAME,
|
||||
.owner = THIS_MODULE,
|
||||
#ifdef CONFIG_OF
|
||||
.of_match_table = xilinx_spi_of_match,
|
||||
#endif
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user