mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
mfd: max8997: Remove unused function max8997_irq_exit()
Utilise devm_*() managed resource helpers for freeing IRQs instead. Reported-by: Dr. David Alan Gilbert <linux@treblig.org> Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
616821ea6c
commit
417206a226
2 changed files with 4 additions and 12 deletions
|
@ -335,7 +335,8 @@ int max8997_irq_init(struct max8997_dev *max8997)
|
|||
}
|
||||
max8997->irq_domain = domain;
|
||||
|
||||
ret = request_threaded_irq(max8997->irq, NULL, max8997_irq_thread,
|
||||
ret = devm_request_threaded_irq(max8997->dev, max8997->irq, NULL,
|
||||
max8997_irq_thread,
|
||||
IRQF_TRIGGER_FALLING | IRQF_ONESHOT,
|
||||
"max8997-irq", max8997);
|
||||
|
||||
|
@ -348,7 +349,8 @@ int max8997_irq_init(struct max8997_dev *max8997)
|
|||
if (!max8997->ono)
|
||||
return 0;
|
||||
|
||||
ret = request_threaded_irq(max8997->ono, NULL, max8997_irq_thread,
|
||||
ret = devm_request_threaded_irq(max8997->dev, max8997->ono, NULL,
|
||||
max8997_irq_thread,
|
||||
IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING |
|
||||
IRQF_ONESHOT, "max8997-ono", max8997);
|
||||
|
||||
|
@ -358,12 +360,3 @@ int max8997_irq_init(struct max8997_dev *max8997)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void max8997_irq_exit(struct max8997_dev *max8997)
|
||||
{
|
||||
if (max8997->ono)
|
||||
free_irq(max8997->ono, max8997);
|
||||
|
||||
if (max8997->irq)
|
||||
free_irq(max8997->irq, max8997);
|
||||
}
|
||||
|
|
|
@ -397,7 +397,6 @@ enum max8997_types {
|
|||
};
|
||||
|
||||
extern int max8997_irq_init(struct max8997_dev *max8997);
|
||||
extern void max8997_irq_exit(struct max8997_dev *max8997);
|
||||
extern int max8997_irq_resume(struct max8997_dev *max8997);
|
||||
|
||||
extern int max8997_read_reg(struct i2c_client *i2c, u8 reg, u8 *dest);
|
||||
|
|
Loading…
Add table
Reference in a new issue