Skip to content

Commit d216bfb

Browse files
Sergey Shtylyovrafaeljw
authored andcommitted
PM: sleep: wakeirq: drop useless parameter from dev_pm_attach_wake_irq()
This function has the 'irq' parameter which isn't ever used, so drop it. Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru> [ rjw: Subject and changelog edits ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 5cbba60 commit d216bfb

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

drivers/base/power/wakeirq.c

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,11 @@
1212
/**
1313
* dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ
1414
* @dev: Device entry
15-
* @irq: Device wake-up capable interrupt
1615
* @wirq: Wake irq specific data
1716
*
18-
* Internal function to attach either a device IO interrupt or a
19-
* dedicated wake-up interrupt as a wake IRQ.
17+
* Internal function to attach a dedicated wake-up interrupt as a wake IRQ.
2018
*/
21-
static int dev_pm_attach_wake_irq(struct device *dev, int irq,
22-
struct wake_irq *wirq)
19+
static int dev_pm_attach_wake_irq(struct device *dev, struct wake_irq *wirq)
2320
{
2421
unsigned long flags;
2522

@@ -65,7 +62,7 @@ int dev_pm_set_wake_irq(struct device *dev, int irq)
6562
wirq->dev = dev;
6663
wirq->irq = irq;
6764

68-
err = dev_pm_attach_wake_irq(dev, irq, wirq);
65+
err = dev_pm_attach_wake_irq(dev, wirq);
6966
if (err)
7067
kfree(wirq);
7168

@@ -196,7 +193,7 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
196193
if (err)
197194
goto err_free_name;
198195

199-
err = dev_pm_attach_wake_irq(dev, irq, wirq);
196+
err = dev_pm_attach_wake_irq(dev, wirq);
200197
if (err)
201198
goto err_free_irq;
202199

0 commit comments

Comments
 (0)