Commit d216bfb4 authored by Sergey Shtylyov's avatar Sergey Shtylyov Committed by Rafael J. Wysocki

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: default avatarSergey Shtylyov <s.shtylyov@omp.ru>
[ rjw: Subject and changelog edits ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 5cbba605
...@@ -12,14 +12,11 @@ ...@@ -12,14 +12,11 @@
/** /**
* dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ * dev_pm_attach_wake_irq - Attach device interrupt as a wake IRQ
* @dev: Device entry * @dev: Device entry
* @irq: Device wake-up capable interrupt
* @wirq: Wake irq specific data * @wirq: Wake irq specific data
* *
* Internal function to attach either a device IO interrupt or a * Internal function to attach a dedicated wake-up interrupt as a wake IRQ.
* dedicated wake-up interrupt as a wake IRQ.
*/ */
static int dev_pm_attach_wake_irq(struct device *dev, int irq, static int dev_pm_attach_wake_irq(struct device *dev, struct wake_irq *wirq)
struct wake_irq *wirq)
{ {
unsigned long flags; unsigned long flags;
...@@ -65,7 +62,7 @@ int dev_pm_set_wake_irq(struct device *dev, int irq) ...@@ -65,7 +62,7 @@ int dev_pm_set_wake_irq(struct device *dev, int irq)
wirq->dev = dev; wirq->dev = dev;
wirq->irq = irq; wirq->irq = irq;
err = dev_pm_attach_wake_irq(dev, irq, wirq); err = dev_pm_attach_wake_irq(dev, wirq);
if (err) if (err)
kfree(wirq); kfree(wirq);
...@@ -196,7 +193,7 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq) ...@@ -196,7 +193,7 @@ int dev_pm_set_dedicated_wake_irq(struct device *dev, int irq)
if (err) if (err)
goto err_free_name; goto err_free_name;
err = dev_pm_attach_wake_irq(dev, irq, wirq); err = dev_pm_attach_wake_irq(dev, wirq);
if (err) if (err)
goto err_free_irq; goto err_free_irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment