Staging: ipack/bridges/tpci200: Don't map memory spaces that are not used later on.
authorJens Taprogge <jens.taprogge@taprogge.org>
Thu, 27 Sep 2012 10:37:27 +0000 (12:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Oct 2012 18:45:08 +0000 (11:45 -0700)
Remove the unused pointers to these spaces.

Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
Signed-off-by: Samuel Iglesias Gonsalvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ipack/bridges/tpci200.c
drivers/staging/ipack/bridges/tpci200.h

index ee66129f0b8a41427d2f180b2e37cb7b322fce95..a804290035580322f06f4bad11fd080c7fa4df12 100644 (file)
@@ -78,8 +78,6 @@ static void tpci200_unregister(struct tpci200_board *tpci200)
        free_irq(tpci200->info->pdev->irq, (void *) tpci200);
 
        pci_iounmap(tpci200->info->pdev, tpci200->info->interface_regs);
-       pci_iounmap(tpci200->info->pdev, tpci200->info->ioidint_space);
-       pci_iounmap(tpci200->info->pdev, tpci200->info->mem8_space);
        pci_iounmap(tpci200->info->pdev, tpci200->info->cfg_regs);
 
        pci_release_region(tpci200->info->pdev, TPCI200_IP_INTERFACE_BAR);
@@ -289,14 +287,6 @@ static int tpci200_register(struct tpci200_board *tpci200)
                ioremap_nocache(pci_resource_start(tpci200->info->pdev,
                                           TPCI200_IP_INTERFACE_BAR),
                        TPCI200_IFACE_SIZE);
-       tpci200->info->ioidint_space =
-               ioremap_nocache(pci_resource_start(tpci200->info->pdev,
-                                          TPCI200_IO_ID_INT_SPACES_BAR),
-                       TPCI200_IOIDINT_SIZE);
-       tpci200->info->mem8_space =
-               ioremap_nocache(pci_resource_start(tpci200->info->pdev,
-                                          TPCI200_MEM8_SPACE_BAR),
-                       TPCI200_MEM8_SIZE);
 
        /* Initialize lock that protects interface_regs */
        spin_lock_init(&tpci200->regs_lock);
index 235d1fe4f48c96bac520e9eed486a4ac00650f90..e4ed0a38ceb39bde47425f0b1ab624ffd0d68f9c 100644 (file)
@@ -156,8 +156,6 @@ struct tpci200_infos {
        struct pci_dev                  *pdev;
        struct pci_device_id            *id_table;
        struct tpci200_regs __iomem     *interface_regs;
-       void __iomem                    *ioidint_space;
-       void __iomem                    *mem8_space;
        void __iomem                    *cfg_regs;
        struct ipack_bus_device         *ipack_bus;
 };