diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-09-07 19:00:28 -0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2005-09-26 07:11:25 -0400 |
commit | 8e5d17ebe41eb98a538ef13aad36da5136701aab (patch) | |
tree | 95a6ba3afade2d9c721e21046af00d16492b2d4f /drivers | |
parent | a413c09094e4df714c274690928dcf8125daf7e8 (diff) |
[PATCH] yenta: tiny cleanup
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pcmcia/yenta_socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pcmcia/yenta_socket.c b/drivers/pcmcia/yenta_socket.c index 53a02f085800..80806c9b43ad 100644 --- a/drivers/pcmcia/yenta_socket.c +++ b/drivers/pcmcia/yenta_socket.c | |||
@@ -987,11 +987,12 @@ static void yenta_config_init(struct yenta_socket *socket) | |||
987 | { | 987 | { |
988 | u16 bridge; | 988 | u16 bridge; |
989 | struct pci_dev *dev = socket->dev; | 989 | struct pci_dev *dev = socket->dev; |
990 | struct pci_bus_region region; | ||
990 | 991 | ||
991 | pci_set_power_state(socket->dev, 0); | 992 | pcibios_resource_to_bus(socket->dev, ®ion, &dev->resource[0]); |
992 | 993 | ||
993 | config_writel(socket, CB_LEGACY_MODE_BASE, 0); | 994 | config_writel(socket, CB_LEGACY_MODE_BASE, 0); |
994 | config_writel(socket, PCI_BASE_ADDRESS_0, dev->resource[0].start); | 995 | config_writel(socket, PCI_BASE_ADDRESS_0, region.start); |
995 | config_writew(socket, PCI_COMMAND, | 996 | config_writew(socket, PCI_COMMAND, |
996 | PCI_COMMAND_IO | | 997 | PCI_COMMAND_IO | |
997 | PCI_COMMAND_MEMORY | | 998 | PCI_COMMAND_MEMORY | |