]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/pcmcia/rsrc_nonstatic.c
pcmcia: do not use ioports < 0x100 on x86
[net-next-2.6.git] / drivers / pcmcia / rsrc_nonstatic.c
index 4663b3fa9f9616a66db5214fc6f5ef16c1b37dc0..dcc602134d90ddca6e06314cce9c204a9b6bf7d7 100644 (file)
@@ -810,6 +810,13 @@ static int adjust_io(struct pcmcia_socket *s, unsigned int action, unsigned long
        unsigned long size = end - start + 1;
        int ret = 0;
 
+#if defined(CONFIG_X86)
+       /* on x86, avoid anything < 0x100 for it is often used for
+        * legacy platform devices */
+       if (start < 0x100)
+               start = 0x100;
+#endif
+
        if (end < start)
                return -EINVAL;