forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f70575805708cabdedea7498aaa3f710fde4d920
kernel/drivers/parisc/eisa_enumerator.c
....@@ -1,13 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * eisa_enumerator.c - provide support for EISA adapters in PA-RISC machines
34 *
4
- * This program is free software; you can redistribute it and/or
5
- * modify it under the terms of the GNU General Public License
6
- * as published by the Free Software Foundation; either version
7
- * 2 of the License, or (at your option) any later version.
8
- *
95 * Copyright (c) 2002 Daniel Engstrom <5116@telia.com>
10
- *
116 */
127
138 #include <linux/ioport.h>
....@@ -98,7 +93,7 @@
9893 res->start = mem_parent->start + get_24(buf+len+2);
9994 res->end = res->start + get_16(buf+len+5)*1024;
10095 res->flags = IORESOURCE_MEM;
101
- printk("memory %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end);
96
+ pr_cont("memory %pR ", res);
10297 result = request_resource(mem_parent, res);
10398 if (result < 0) {
10499 printk(KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n");
....@@ -128,7 +123,7 @@
128123 for (i=0;i<HPEE_IRQ_MAX_ENT;i++) {
129124 c = get_8(buf+len);
130125
131
- printk("IRQ %d ", c & HPEE_IRQ_CHANNEL_MASK);
126
+ pr_cont("IRQ %d ", c & HPEE_IRQ_CHANNEL_MASK);
132127 if (c & HPEE_IRQ_TRIG_LEVEL) {
133128 eisa_make_irq_level(c & HPEE_IRQ_CHANNEL_MASK);
134129 } else {
....@@ -158,7 +153,7 @@
158153
159154 for (i=0;i<HPEE_DMA_MAX_ENT;i++) {
160155 c = get_8(buf+len);
161
- printk("DMA %d ", c&HPEE_DMA_CHANNEL_MASK);
156
+ pr_cont("DMA %d ", c&HPEE_DMA_CHANNEL_MASK);
162157 /* fixme: maybe initialize the dma channel withthe timing ? */
163158 len+=2;
164159 if (!(c & HPEE_DMA_MORE)) {
....@@ -188,7 +183,7 @@
188183 res->start = get_16(buf+len+1);
189184 res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1;
190185 res->flags = IORESOURCE_IO;
191
- printk("ioports %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end);
186
+ pr_cont("ioports %pR ", res);
192187 result = request_resource(io_parent, res);
193188 if (result < 0) {
194189 printk(KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n");
....@@ -406,7 +401,7 @@
406401 }
407402 pos = p0 + function_len;
408403 }
409
- printk("\n");
404
+ pr_cont("\n");
410405 if (!id_string_used) {
411406 kfree(board);
412407 }