]> git.hungrycats.org Git - linux/commitdiff
[ISAPNP] MEM32 fix in read resources
authorJaroslav Kysela <perex@suse.cz>
Wed, 14 Apr 2004 04:37:48 +0000 (04:37 +0000)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 14 Apr 2004 04:37:48 +0000 (04:37 +0000)
Corrects isapnp_read_resources so that it gets MEM32 information properly.

drivers/pnp/isapnp/core.c

index e2df1e417536d165dcad90cffb515976f230f23f..5adaac67052ec3aa27b6419e345c68220cb7ec65 100644 (file)
@@ -995,7 +995,7 @@ static int isapnp_read_resources(struct pnp_dev *dev, struct pnp_resource_table
                        res->port_resource[tmp].flags = IORESOURCE_IO;
                }
                for (tmp = 0; tmp < PNP_MAX_MEM; tmp++) {
-                       ret = isapnp_read_dword(ISAPNP_CFG_MEM + (tmp << 3));
+                       ret = isapnp_read_word(ISAPNP_CFG_MEM + (tmp << 3)) << 8;
                        if (!ret)
                                continue;
                        res->mem_resource[tmp].start = ret;