MALI: midgard: use strncasecmp() to compare irq names

to adapt to current rk3399.dtsi.

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: Ibe0906908ff50ed00c17d9dfd00a40f3898549c1
This commit is contained in:
Zhen Chen
2021-08-25 19:18:35 +08:00
committed by Tao Huang
parent 44063c39fa
commit ff6f00a18f

View File

@@ -1025,11 +1025,11 @@ static int assign_irqs(struct platform_device *pdev)
}
#ifdef CONFIG_OF
if (!strncmp(irq_res->name, "JOB", 4)) {
if (!strncasecmp(irq_res->name, "JOB", 3)) {
irqtag = JOB_IRQ_TAG;
} else if (!strncmp(irq_res->name, "MMU", 4)) {
} else if (!strncasecmp(irq_res->name, "MMU", 3)) {
irqtag = MMU_IRQ_TAG;
} else if (!strncmp(irq_res->name, "GPU", 4)) {
} else if (!strncasecmp(irq_res->name, "GPU", 3)) {
irqtag = GPU_IRQ_TAG;
} else {
dev_err(&pdev->dev, "Invalid irq res name: '%s'\n",