Message ID | 1394048065-14200-1-git-send-email-joshc@codeaurora.org (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On 03/05/14 11:34, Josh Cartwright wrote: > 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 <sboyd@codeaurora.org> Thanks
> platform_get_irq() returns a negative error code when an IRQ is invalid > or unspecified. Make 'irq' signed to properly handle this. > > Cc: Stephen Boyd <sboyd@codeaurora.org> > Signed-off-by: Josh Cartwright <joshc@codeaurora.org> > --- > drivers/mfd/pm8921-core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Applied thanks.
diff --git a/drivers/mfd/pm8921-core.c b/drivers/mfd/pm8921-core.c index 3aab6ac..d48452d 100644 --- a/drivers/mfd/pm8921-core.c +++ b/drivers/mfd/pm8921-core.c @@ -403,9 +403,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;
platform_get_irq() returns a negative error code when an IRQ is invalid or unspecified. Make 'irq' signed to properly handle this. Cc: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Josh Cartwright <joshc@codeaurora.org> --- drivers/mfd/pm8921-core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)