aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2008-08-02 15:36:19 -0400
committerDominik Brodowski <linux@dominikbrodowski.net>2008-08-22 19:54:30 -0400
commitdbe4ea5fde198a3808e46b665d889818c1e600f5 (patch)
treee5a405ea704f4d4b972087c4f7b8693760aa0552
parentac449d6e2c81d26f91d092aba114ab3cb2a02ca0 (diff)
pcmcia: use dev_printk in module rsrc_nonstatic
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r--drivers/pcmcia/rsrc_nonstatic.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/drivers/pcmcia/rsrc_nonstatic.c b/drivers/pcmcia/rsrc_nonstatic.c
index d0c1d63d1891..00aacbe731dc 100644
--- a/drivers/pcmcia/rsrc_nonstatic.c
+++ b/drivers/pcmcia/rsrc_nonstatic.c
@@ -194,13 +194,14 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base,
194 int any; 194 int any;
195 u_char *b, hole, most; 195 u_char *b, hole, most;
196 196
197 printk(KERN_INFO "cs: IO port probe %#x-%#x:", 197 dev_printk(KERN_INFO, &s->dev, "cs: IO port probe %#x-%#x:",
198 base, base+num-1); 198 base, base+num-1);
199 199
200 /* First, what does a floating port look like? */ 200 /* First, what does a floating port look like? */
201 b = kzalloc(256, GFP_KERNEL); 201 b = kzalloc(256, GFP_KERNEL);
202 if (!b) { 202 if (!b) {
203 printk(KERN_ERR "do_io_probe: unable to kmalloc 256 bytes"); 203 dev_printk(KERN_ERR, &s->dev,
204 "do_io_probe: unable to kmalloc 256 bytes");
204 return; 205 return;
205 } 206 }
206 for (i = base, most = 0; i < base+num; i += 8) { 207 for (i = base, most = 0; i < base+num; i += 8) {
@@ -366,8 +367,8 @@ static int do_mem_probe(u_long base, u_long num, struct pcmcia_socket *s)
366 struct socket_data *s_data = s->resource_data; 367 struct socket_data *s_data = s->resource_data;
367 u_long i, j, bad, fail, step; 368 u_long i, j, bad, fail, step;
368 369
369 printk(KERN_INFO "cs: memory probe 0x%06lx-0x%06lx:", 370 dev_printk(KERN_INFO, &s->dev, "cs: memory probe 0x%06lx-0x%06lx:",
370 base, base+num-1); 371 base, base+num-1);
371 bad = fail = 0; 372 bad = fail = 0;
372 step = (num < 0x20000) ? 0x2000 : ((num>>4) & ~0x1fff); 373 step = (num < 0x20000) ? 0x2000 : ((num>>4) & ~0x1fff);
373 /* don't allow too large steps */ 374 /* don't allow too large steps */
@@ -431,8 +432,8 @@ static int validate_mem(struct pcmcia_socket *s, unsigned int probe_mask)
431 if (probe_mask & MEM_PROBE_HIGH) { 432 if (probe_mask & MEM_PROBE_HIGH) {
432 if (inv_probe(s_data->mem_db.next, s) > 0) 433 if (inv_probe(s_data->mem_db.next, s) > 0)
433 return 0; 434 return 0;
434 printk(KERN_NOTICE "cs: warning: no high memory space " 435 dev_printk(KERN_NOTICE, &s->dev,
435 "available!\n"); 436 "cs: warning: no high memory space available!\n");
436 return -ENODEV; 437 return -ENODEV;
437 } 438 }
438 439
@@ -794,10 +795,11 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
794 if (res->flags & IORESOURCE_IO) { 795 if (res->flags & IORESOURCE_IO) {
795 if (res == &ioport_resource) 796 if (res == &ioport_resource)
796 continue; 797 continue;
797 printk(KERN_INFO "pcmcia: parent PCI bridge I/O " 798 dev_printk(KERN_INFO, &s->cb_dev->dev,
798 "window: 0x%llx - 0x%llx\n", 799 "pcmcia: parent PCI bridge I/O "
799 (unsigned long long)res->start, 800 "window: 0x%llx - 0x%llx\n",
800 (unsigned long long)res->end); 801 (unsigned long long)res->start,
802 (unsigned long long)res->end);
801 if (!adjust_io(s, ADD_MANAGED_RESOURCE, res->start, res->end)) 803 if (!adjust_io(s, ADD_MANAGED_RESOURCE, res->start, res->end))
802 done |= IORESOURCE_IO; 804 done |= IORESOURCE_IO;
803 805
@@ -806,10 +808,11 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
806 if (res->flags & IORESOURCE_MEM) { 808 if (res->flags & IORESOURCE_MEM) {
807 if (res == &iomem_resource) 809 if (res == &iomem_resource)
808 continue; 810 continue;
809 printk(KERN_INFO "pcmcia: parent PCI bridge Memory " 811 dev_printk(KERN_INFO, &s->cb_dev->dev,
810 "window: 0x%llx - 0x%llx\n", 812 "pcmcia: parent PCI bridge Memory "
811 (unsigned long long)res->start, 813 "window: 0x%llx - 0x%llx\n",
812 (unsigned long long)res->end); 814 (unsigned long long)res->start,
815 (unsigned long long)res->end);
813 if (!adjust_memory(s, ADD_MANAGED_RESOURCE, res->start, res->end)) 816 if (!adjust_memory(s, ADD_MANAGED_RESOURCE, res->start, res->end))
814 done |= IORESOURCE_MEM; 817 done |= IORESOURCE_MEM;
815 } 818 }