mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Signed-off-by: Josh Cartwright <[email protected]> Signed-off-by: Lee Jones <[email protected]>
This commit is contained in:
parent
d9a335155c
commit
202f7680af
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue