mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 23:53:52 +02: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:
parent
44063c39fa
commit
ff6f00a18f
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user