Loading drivers/pcmcia/rsrc_nonstatic.c +18 −15 Original line number Diff line number Diff line Loading @@ -194,13 +194,14 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base, int any; u_char *b, hole, most; printk(KERN_INFO "cs: IO port probe %#x-%#x:", dev_printk(KERN_INFO, &s->dev, "cs: IO port probe %#x-%#x:", base, base+num-1); /* First, what does a floating port look like? */ b = kzalloc(256, GFP_KERNEL); if (!b) { printk(KERN_ERR "do_io_probe: unable to kmalloc 256 bytes"); dev_printk(KERN_ERR, &s->dev, "do_io_probe: unable to kmalloc 256 bytes"); return; } for (i = base, most = 0; i < base+num; i += 8) { Loading Loading @@ -366,7 +367,7 @@ static int do_mem_probe(u_long base, u_long num, struct pcmcia_socket *s) struct socket_data *s_data = s->resource_data; u_long i, j, bad, fail, step; printk(KERN_INFO "cs: memory probe 0x%06lx-0x%06lx:", dev_printk(KERN_INFO, &s->dev, "cs: memory probe 0x%06lx-0x%06lx:", base, base+num-1); bad = fail = 0; step = (num < 0x20000) ? 0x2000 : ((num>>4) & ~0x1fff); Loading Loading @@ -431,8 +432,8 @@ static int validate_mem(struct pcmcia_socket *s, unsigned int probe_mask) if (probe_mask & MEM_PROBE_HIGH) { if (inv_probe(s_data->mem_db.next, s) > 0) return 0; printk(KERN_NOTICE "cs: warning: no high memory space " "available!\n"); dev_printk(KERN_NOTICE, &s->dev, "cs: warning: no high memory space available!\n"); return -ENODEV; } Loading Loading @@ -794,7 +795,8 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s) if (res->flags & IORESOURCE_IO) { if (res == &ioport_resource) continue; printk(KERN_INFO "pcmcia: parent PCI bridge I/O " dev_printk(KERN_INFO, &s->cb_dev->dev, "pcmcia: parent PCI bridge I/O " "window: 0x%llx - 0x%llx\n", (unsigned long long)res->start, (unsigned long long)res->end); Loading @@ -806,7 +808,8 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s) if (res->flags & IORESOURCE_MEM) { if (res == &iomem_resource) continue; printk(KERN_INFO "pcmcia: parent PCI bridge Memory " dev_printk(KERN_INFO, &s->cb_dev->dev, "pcmcia: parent PCI bridge Memory " "window: 0x%llx - 0x%llx\n", (unsigned long long)res->start, (unsigned long long)res->end); Loading Loading
drivers/pcmcia/rsrc_nonstatic.c +18 −15 Original line number Diff line number Diff line Loading @@ -194,13 +194,14 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base, int any; u_char *b, hole, most; printk(KERN_INFO "cs: IO port probe %#x-%#x:", dev_printk(KERN_INFO, &s->dev, "cs: IO port probe %#x-%#x:", base, base+num-1); /* First, what does a floating port look like? */ b = kzalloc(256, GFP_KERNEL); if (!b) { printk(KERN_ERR "do_io_probe: unable to kmalloc 256 bytes"); dev_printk(KERN_ERR, &s->dev, "do_io_probe: unable to kmalloc 256 bytes"); return; } for (i = base, most = 0; i < base+num; i += 8) { Loading Loading @@ -366,7 +367,7 @@ static int do_mem_probe(u_long base, u_long num, struct pcmcia_socket *s) struct socket_data *s_data = s->resource_data; u_long i, j, bad, fail, step; printk(KERN_INFO "cs: memory probe 0x%06lx-0x%06lx:", dev_printk(KERN_INFO, &s->dev, "cs: memory probe 0x%06lx-0x%06lx:", base, base+num-1); bad = fail = 0; step = (num < 0x20000) ? 0x2000 : ((num>>4) & ~0x1fff); Loading Loading @@ -431,8 +432,8 @@ static int validate_mem(struct pcmcia_socket *s, unsigned int probe_mask) if (probe_mask & MEM_PROBE_HIGH) { if (inv_probe(s_data->mem_db.next, s) > 0) return 0; printk(KERN_NOTICE "cs: warning: no high memory space " "available!\n"); dev_printk(KERN_NOTICE, &s->dev, "cs: warning: no high memory space available!\n"); return -ENODEV; } Loading Loading @@ -794,7 +795,8 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s) if (res->flags & IORESOURCE_IO) { if (res == &ioport_resource) continue; printk(KERN_INFO "pcmcia: parent PCI bridge I/O " dev_printk(KERN_INFO, &s->cb_dev->dev, "pcmcia: parent PCI bridge I/O " "window: 0x%llx - 0x%llx\n", (unsigned long long)res->start, (unsigned long long)res->end); Loading @@ -806,7 +808,8 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s) if (res->flags & IORESOURCE_MEM) { if (res == &iomem_resource) continue; printk(KERN_INFO "pcmcia: parent PCI bridge Memory " dev_printk(KERN_INFO, &s->cb_dev->dev, "pcmcia: parent PCI bridge Memory " "window: 0x%llx - 0x%llx\n", (unsigned long long)res->start, (unsigned long long)res->end); Loading