Skip to content

Commit 23c7ff1

Browse files
NoltariMarc Zyngier
authored andcommitted
irqchip/bcm-6345-l1: Request memory region
Request memory region in order to display it in /proc/iomem. Also stop printing the MMIO address since it just displays (ptrval). Signed-off-by: Álvaro Fernández Rojas <[email protected]> Acked-by: Florian Fainelli <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent e8d018d commit 23c7ff1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/irqchip/irq-bcm6345-l1.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ static int __init bcm6345_l1_init_one(struct device_node *dn,
257257
if (!cpu->map_base)
258258
return -ENOMEM;
259259

260+
if (!request_mem_region(res.start, sz, res.name))
261+
pr_err("failed to request intc memory");
262+
260263
for (i = 0; i < n_words; i++) {
261264
cpu->enable_cache[i] = 0;
262265
__raw_writel(0, cpu->map_base + reg_enable(intc, i));
@@ -335,8 +338,7 @@ static int __init bcm6345_l1_of_init(struct device_node *dn,
335338
for_each_cpu(idx, &intc->cpumask) {
336339
struct bcm6345_l1_cpu *cpu = intc->cpus[idx];
337340

338-
pr_info(" CPU%u at MMIO 0x%p (irq = %d)\n", idx,
339-
cpu->map_base, cpu->parent_irq);
341+
pr_info(" CPU%u (irq = %d)\n", idx, cpu->parent_irq);
340342
}
341343

342344
return 0;

0 commit comments

Comments
 (0)