提交 de083101 编写于 作者: P Phil Elwell 提交者: Zheng Zengkai

net: bcmgenet: The second IRQ is optional

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

As of 5.4, the kernel logs errors for absent IRQs unless requested
with platform_get_irq_optional.
Signed-off-by: NPhil Elwell <phil@raspberrypi.org>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 717942c4
...@@ -217,7 +217,7 @@ v3d_irq_init(struct v3d_dev *v3d) ...@@ -217,7 +217,7 @@ v3d_irq_init(struct v3d_dev *v3d)
V3D_CORE_WRITE(core, V3D_CTL_INT_CLR, V3D_CORE_IRQS); V3D_CORE_WRITE(core, V3D_CTL_INT_CLR, V3D_CORE_IRQS);
V3D_WRITE(V3D_HUB_INT_CLR, V3D_HUB_IRQS); V3D_WRITE(V3D_HUB_INT_CLR, V3D_HUB_IRQS);
irq1 = platform_get_irq(v3d_to_pdev(v3d), 1); irq1 = platform_get_irq_optional(v3d_to_pdev(v3d), 1);
if (irq1 == -EPROBE_DEFER) if (irq1 == -EPROBE_DEFER)
return irq1; return irq1;
if (irq1 > 0) { if (irq1 > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册