soc: qcom: llcc: make irq truly optional
[ Upstream commitc882c899ea] The function platform_get_irq prints an error message into the kernel log when the irq isn't found. Since the interrupt is actually optional and not provided by some SoCs, use platform_get_irq_optional which does not print an error message. Fixes:c081f3060f("soc: qcom: Add support to register LLCC EDAC driver") Signed-off-by: Luca Weiss <luca.weiss@fairphone.com> Signed-off-by: Bjorn Andersson <andersson@kernel.org> Link: https://lore.kernel.org/r/20221104153041.412020-1-luca.weiss@fairphone.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
8fb204a4b5
commit
45d180a9f6
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ static int qcom_llcc_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
goto err;
|
||||
|
||||
drv_data->ecc_irq = platform_get_irq(pdev, 0);
|
||||
drv_data->ecc_irq = platform_get_irq_optional(pdev, 0);
|
||||
if (drv_data->ecc_irq >= 0) {
|
||||
llcc_edac = platform_device_register_data(&pdev->dev,
|
||||
"qcom_llcc_edac", -1, drv_data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue