[PATCH] 2.5.45-ac1 CardBus compile Fix

Osamu Tomita (tomita@cinet.co.jp)
Fri, 08 Nov 2002 00:41:20 +0900


This is a multi-part message in MIME format.
--------------A1F21475D43E4AB34680EB7E
Content-Type: text/plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

I couldn't compile cistpl.c, that call obsolete function.

Here is trivial patch. This works fine for me.

Regards,
Osamu Tomita
--------------A1F21475D43E4AB34680EB7E
Content-Type: text/plain; charset=iso-2022-jp;
name="2.5.45-ac1-cardbus-compile.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="2.5.45-ac1-cardbus-compile.patch"

--- linux-2.5.45-ac1/drivers/pcmcia/cistpl.c.orig Thu Oct 31 09:42:24 2002
+++ linux-2.5.45-ac1/drivers/pcmcia/cistpl.c Thu Nov 7 01:03:55 2002
@@ -429,7 +429,7 @@
#ifdef CONFIG_CARDBUS
if (s->state & SOCKET_CARDBUS) {
u_int ptr;
- pcibios_read_config_dword(s->cap.cb_dev->subordinate->number, 0, 0x28, &ptr);
+ pci_bus_read_config_dword(s->cap.cb_dev->bus, 0, 0x28, &ptr);
tuple->CISOffset = ptr & ~7;
SPACE(tuple->Flags) = (ptr & 7);
} else

--------------A1F21475D43E4AB34680EB7E--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/