From: Josh Cartwright Date: Wed, 5 Mar 2014 19:34:25 +0000 (-0600) Subject: mfd: pm8921: Fixup probe() error path when irq invalid X-Git-Tag: firefly_0821_release~176^2~4118^2~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=202f7680af1563516a057f884cea30be94d3014f;p=firefly-linux-kernel-4.4.55.git mfd: pm8921: Fixup probe() error path when irq invalid platform_get_irq() returns a negative error code when an IRQ is invalid or unspecified. Make 'irq' signed to properly handle this. Reviewed-by: Stephen Boyd Signed-off-by: Josh Cartwright Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/pm8921-core.c index 1153e8a3a556..b97a97187ae9 100644 --- a/drivers/mfd/pm8921-core.c +++ b/drivers/mfd/pm8921-core.c @@ -394,9 +394,8 @@ static int pm8921_probe(struct platform_device *pdev) { struct pm8921 *pmic; struct regmap *regmap; - int rc; + int irq, rc; unsigned int val; - unsigned int irq; u32 rev; struct pm_irq_chip *chip; unsigned int nirqs = PM8921_NR_IRQS;