mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user