[PATCH] 2.5.45-ac1 CardBus compile Fix

From: Osamu Tomita (tomita@cinet.co.jp)
Date: Thu Nov 07 2002 - 10:41:20 EST


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

Here is trivial patch. This works fine for me.

Regards,
Osamu Tomita

--- 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

-
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/



This archive was generated by hypermail 2b29 : Thu Nov 07 2002 - 22:00:48 EST