aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/vme/bridges/vme_ca91cx42.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vme/bridges/vme_ca91cx42.c')
-rw-r--r--drivers/vme/bridges/vme_ca91cx42.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/vme/bridges/vme_ca91cx42.c b/drivers/vme/bridges/vme_ca91cx42.c
index 5fbeab38889e..9f2c834e43e0 100644
--- a/drivers/vme/bridges/vme_ca91cx42.c
+++ b/drivers/vme/bridges/vme_ca91cx42.c
@@ -204,10 +204,6 @@ static int ca91cx42_irq_init(struct vme_bridge *ca91cx42_bridge)
204 /* Need pdev */ 204 /* Need pdev */
205 pdev = to_pci_dev(ca91cx42_bridge->parent); 205 pdev = to_pci_dev(ca91cx42_bridge->parent);
206 206
207 INIT_LIST_HEAD(&ca91cx42_bridge->vme_error_handlers);
208
209 mutex_init(&ca91cx42_bridge->irq_mtx);
210
211 /* Disable interrupts from PCI to VME */ 207 /* Disable interrupts from PCI to VME */
212 iowrite32(0, bridge->base + VINT_EN); 208 iowrite32(0, bridge->base + VINT_EN);
213 209
@@ -1626,6 +1622,7 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1626 retval = -ENOMEM; 1622 retval = -ENOMEM;
1627 goto err_struct; 1623 goto err_struct;
1628 } 1624 }
1625 vme_init_bridge(ca91cx42_bridge);
1629 1626
1630 ca91cx42_device = kzalloc(sizeof(struct ca91cx42_driver), GFP_KERNEL); 1627 ca91cx42_device = kzalloc(sizeof(struct ca91cx42_driver), GFP_KERNEL);
1631 1628
@@ -1686,7 +1683,6 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1686 } 1683 }
1687 1684
1688 /* Add master windows to list */ 1685 /* Add master windows to list */
1689 INIT_LIST_HEAD(&ca91cx42_bridge->master_resources);
1690 for (i = 0; i < CA91C142_MAX_MASTER; i++) { 1686 for (i = 0; i < CA91C142_MAX_MASTER; i++) {
1691 master_image = kmalloc(sizeof(struct vme_master_resource), 1687 master_image = kmalloc(sizeof(struct vme_master_resource),
1692 GFP_KERNEL); 1688 GFP_KERNEL);
@@ -1713,7 +1709,6 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1713 } 1709 }
1714 1710
1715 /* Add slave windows to list */ 1711 /* Add slave windows to list */
1716 INIT_LIST_HEAD(&ca91cx42_bridge->slave_resources);
1717 for (i = 0; i < CA91C142_MAX_SLAVE; i++) { 1712 for (i = 0; i < CA91C142_MAX_SLAVE; i++) {
1718 slave_image = kmalloc(sizeof(struct vme_slave_resource), 1713 slave_image = kmalloc(sizeof(struct vme_slave_resource),
1719 GFP_KERNEL); 1714 GFP_KERNEL);
@@ -1741,7 +1736,6 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1741 } 1736 }
1742 1737
1743 /* Add dma engines to list */ 1738 /* Add dma engines to list */
1744 INIT_LIST_HEAD(&ca91cx42_bridge->dma_resources);
1745 for (i = 0; i < CA91C142_MAX_DMA; i++) { 1739 for (i = 0; i < CA91C142_MAX_DMA; i++) {
1746 dma_ctrlr = kmalloc(sizeof(struct vme_dma_resource), 1740 dma_ctrlr = kmalloc(sizeof(struct vme_dma_resource),
1747 GFP_KERNEL); 1741 GFP_KERNEL);
@@ -1764,7 +1758,6 @@ static int ca91cx42_probe(struct pci_dev *pdev, const struct pci_device_id *id)
1764 } 1758 }
1765 1759
1766 /* Add location monitor to list */ 1760 /* Add location monitor to list */
1767 INIT_LIST_HEAD(&ca91cx42_bridge->lm_resources);
1768 lm = kmalloc(sizeof(struct vme_lm_resource), GFP_KERNEL); 1761 lm = kmalloc(sizeof(struct vme_lm_resource), GFP_KERNEL);
1769 if (lm == NULL) { 1762 if (lm == NULL) {
1770 dev_err(&pdev->dev, "Failed to allocate memory for " 1763 dev_err(&pdev->dev, "Failed to allocate memory for "