Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/lima: Clean up IRQ warnings

Use the optional form of platform_get_irq() for blocks that legitimately
may not be present, to avoid getting an annoying barrage of spurious
warnings for non-existent PPs on configurations like Mali-450 MP2.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/de475904091400ef6c123285f221094654d96d35.1587509150.git.robin.murphy@arm.com

authored by

Robin Murphy and committed by
Qiang Yu
21d81f88 973a5909

+5 -2
+5 -2
drivers/gpu/drm/lima/lima_device.c
··· 171 171 172 172 static int lima_init_ip(struct lima_device *dev, int index) 173 173 { 174 + struct platform_device *pdev = to_platform_device(dev->dev); 174 175 struct lima_ip_desc *desc = lima_ip_desc + index; 175 176 struct lima_ip *ip = dev->ip + index; 177 + const char *irq_name = desc->irq_name; 176 178 int offset = desc->offset[dev->id]; 177 179 bool must = desc->must_have[dev->id]; 178 180 int err; ··· 185 183 ip->dev = dev; 186 184 ip->id = index; 187 185 ip->iomem = dev->iomem + offset; 188 - if (desc->irq_name) { 189 - err = platform_get_irq_byname(dev->pdev, desc->irq_name); 186 + if (irq_name) { 187 + err = must ? platform_get_irq_byname(pdev, irq_name) : 188 + platform_get_irq_byname_optional(pdev, irq_name); 190 189 if (err < 0) 191 190 goto out; 192 191 ip->irq = err;