]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] yenta: tiny cleanup
authorDominik Brodowski <linux@dominikbrodowski.net>
Wed, 7 Sep 2005 23:00:28 +0000 (16:00 -0700)
committerDominik Brodowski <linux@dominikbrodowski.net>
Mon, 26 Sep 2005 11:11:25 +0000 (13:11 +0200)
pci_set_power_state is not needed, as we call pci_enable_device() somewhere
else.  Also, the resource we write to PCI_BASE_ADDRESS_0 needs to be converted
to bus-centric view first.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/yenta_socket.c

index 53a02f0858009b936fcf3dd945bddc74b48ca3f0..80806c9b43adcd7bdbe584288fbc04c2fd68657d 100644 (file)
@@ -987,11 +987,12 @@ static void yenta_config_init(struct yenta_socket *socket)
 {
        u16 bridge;
        struct pci_dev *dev = socket->dev;
+       struct pci_bus_region region;
 
-       pci_set_power_state(socket->dev, 0);
+       pcibios_resource_to_bus(socket->dev, &region, &dev->resource[0]);
 
        config_writel(socket, CB_LEGACY_MODE_BASE, 0);
-       config_writel(socket, PCI_BASE_ADDRESS_0, dev->resource[0].start);
+       config_writel(socket, PCI_BASE_ADDRESS_0, region.start);
        config_writew(socket, PCI_COMMAND,
                        PCI_COMMAND_IO |
                        PCI_COMMAND_MEMORY |