Skip to content

Commit

Permalink
PM: sleep: wakeirq: drop useless parameter from dev_pm_attach_wake_irq()
Browse files Browse the repository at this point in the history
This function has the 'irq' parameter which isn't ever used, so drop it.

Signed-off-by: Sergey Shtylyov <[email protected]>
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Sergey Shtylyov authored and rafaeljw committed Sep 7, 2021
1 parent 5cbba60 commit d216bfb
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions drivers/base/power/wakeirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,11 @@
/**
* dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ
* @dev: Device entry
* @irq: Device wake-up capable interrupt
* @wirq: Wake irq specific data
*
* Internal function to attach either a device IO interrupt or a
* dedicated wake-up interrupt as a wake IRQ.
* Internal function to attach a dedicated wake-up interrupt as a wake IRQ.
*/
static int dev_pm_attach_wake_irq(struct device *dev, int irq,
struct wake_irq *wirq)
static int dev_pm_attach_wake_irq(struct device *dev, struct wake_irq *wirq)
{
unsigned long flags;

Expand Down Expand Up @@ -65,7 +62,7 @@ int dev_pm_set_wake_irq(struct device *dev, int irq)
wirq->dev = dev;
wirq->irq = irq;

err = dev_pm_attach_wake_irq(dev, irq, wirq);
err = dev_pm_attach_wake_irq(dev, wirq);
if (err)
kfree(wirq);

Expand Down Expand Up @@ -196,7 +193,7 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
if (err)
goto err_free_name;

err = dev_pm_attach_wake_irq(dev, irq, wirq);
err = dev_pm_attach_wake_irq(dev, wirq);
if (err)
goto err_free_irq;

Expand Down

0 comments on commit d216bfb

Please sign in to comment.