pcmcia: use dev_printk in module rsrc_nonstatic
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
Родитель
ac449d6e2c
Коммит
dbe4ea5fde
|
@ -194,13 +194,14 @@ static void do_io_probe(struct pcmcia_socket *s, unsigned int base,
|
||||||
int any;
|
int any;
|
||||||
u_char *b, hole, most;
|
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);
|
base, base+num-1);
|
||||||
|
|
||||||
/* First, what does a floating port look like? */
|
/* First, what does a floating port look like? */
|
||||||
b = kzalloc(256, GFP_KERNEL);
|
b = kzalloc(256, GFP_KERNEL);
|
||||||
if (!b) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
for (i = base, most = 0; i < base+num; i += 8) {
|
for (i = base, most = 0; i < base+num; i += 8) {
|
||||||
|
@ -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;
|
struct socket_data *s_data = s->resource_data;
|
||||||
u_long i, j, bad, fail, step;
|
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);
|
base, base+num-1);
|
||||||
bad = fail = 0;
|
bad = fail = 0;
|
||||||
step = (num < 0x20000) ? 0x2000 : ((num>>4) & ~0x1fff);
|
step = (num < 0x20000) ? 0x2000 : ((num>>4) & ~0x1fff);
|
||||||
|
@ -431,8 +432,8 @@ static int validate_mem(struct pcmcia_socket *s, unsigned int probe_mask)
|
||||||
if (probe_mask & MEM_PROBE_HIGH) {
|
if (probe_mask & MEM_PROBE_HIGH) {
|
||||||
if (inv_probe(s_data->mem_db.next, s) > 0)
|
if (inv_probe(s_data->mem_db.next, s) > 0)
|
||||||
return 0;
|
return 0;
|
||||||
printk(KERN_NOTICE "cs: warning: no high memory space "
|
dev_printk(KERN_NOTICE, &s->dev,
|
||||||
"available!\n");
|
"cs: warning: no high memory space available!\n");
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -794,7 +795,8 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
|
||||||
if (res->flags & IORESOURCE_IO) {
|
if (res->flags & IORESOURCE_IO) {
|
||||||
if (res == &ioport_resource)
|
if (res == &ioport_resource)
|
||||||
continue;
|
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",
|
"window: 0x%llx - 0x%llx\n",
|
||||||
(unsigned long long)res->start,
|
(unsigned long long)res->start,
|
||||||
(unsigned long long)res->end);
|
(unsigned long long)res->end);
|
||||||
|
@ -806,7 +808,8 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
|
||||||
if (res->flags & IORESOURCE_MEM) {
|
if (res->flags & IORESOURCE_MEM) {
|
||||||
if (res == &iomem_resource)
|
if (res == &iomem_resource)
|
||||||
continue;
|
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",
|
"window: 0x%llx - 0x%llx\n",
|
||||||
(unsigned long long)res->start,
|
(unsigned long long)res->start,
|
||||||
(unsigned long long)res->end);
|
(unsigned long long)res->end);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче