Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5aa6a18 authored by Deepak Katragadda's avatar Deepak Katragadda
Browse files

msm: ssr: Correct storing the wdog_irq resource start address



Currently, even if platform_get_irq fails, the error value is being
stored in the wdog_bite_irq variable instead of it remaining as
zero.
Correct the behavior to store proper IRQ values.

Change-Id: I3f522ce865dbe88c47d3af168a805ce763be1f7e
Signed-off-by: default avatarDeepak Katragadda <dkatraga@codeaurora.org>
parent ca6129fc
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1146,9 +1146,9 @@ static int subsys_parse_devicetree(struct subsys_desc *desc)
	if (ret && ret != -ENOENT)
		return ret;

	desc->wdog_bite_irq = platform_get_irq(pdev, 0);
	if (desc->wdog_bite_irq < 0)
		return desc->wdog_bite_irq;
	ret = platform_get_irq(pdev, 0);
	if (ret > 0)
		desc->wdog_bite_irq = ret;

	return 0;
}