mirror of https://github.com/torvalds/linux.git
HID: intel-thc-hid: Remove redundant pm_runtime_mark_last_busy() calls
pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Even Xu <even.xu@intel.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
This commit is contained in:
parent
2953fb6548
commit
c430f56be3
|
|
@ -344,7 +344,6 @@ static irqreturn_t quicki2c_irq_thread_handler(int irq, void *dev_id)
|
||||||
if (try_recover(qcdev))
|
if (try_recover(qcdev))
|
||||||
qcdev->state = QUICKI2C_DISABLED;
|
qcdev->state = QUICKI2C_DISABLED;
|
||||||
|
|
||||||
pm_runtime_mark_last_busy(qcdev->dev);
|
|
||||||
pm_runtime_put_autosuspend(qcdev->dev);
|
pm_runtime_put_autosuspend(qcdev->dev);
|
||||||
|
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
|
|
@ -735,7 +734,6 @@ static int quicki2c_probe(struct pci_dev *pdev, const struct pci_device_id *id)
|
||||||
/* Enable runtime power management */
|
/* Enable runtime power management */
|
||||||
pm_runtime_use_autosuspend(qcdev->dev);
|
pm_runtime_use_autosuspend(qcdev->dev);
|
||||||
pm_runtime_set_autosuspend_delay(qcdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
|
pm_runtime_set_autosuspend_delay(qcdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
|
||||||
pm_runtime_mark_last_busy(qcdev->dev);
|
|
||||||
pm_runtime_put_noidle(qcdev->dev);
|
pm_runtime_put_noidle(qcdev->dev);
|
||||||
pm_runtime_put_autosuspend(qcdev->dev);
|
pm_runtime_put_autosuspend(qcdev->dev);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ static int quicki2c_hid_raw_request(struct hid_device *hid,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
pm_runtime_mark_last_busy(qcdev->dev);
|
|
||||||
pm_runtime_put_autosuspend(qcdev->dev);
|
pm_runtime_put_autosuspend(qcdev->dev);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
|
|
@ -339,7 +339,6 @@ static irqreturn_t quickspi_irq_thread_handler(int irq, void *dev_id)
|
||||||
if (try_recover(qsdev))
|
if (try_recover(qsdev))
|
||||||
qsdev->state = QUICKSPI_DISABLED;
|
qsdev->state = QUICKSPI_DISABLED;
|
||||||
|
|
||||||
pm_runtime_mark_last_busy(qsdev->dev);
|
|
||||||
pm_runtime_put_autosuspend(qsdev->dev);
|
pm_runtime_put_autosuspend(qsdev->dev);
|
||||||
|
|
||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
|
|
@ -674,7 +673,6 @@ static int quickspi_probe(struct pci_dev *pdev,
|
||||||
/* Enable runtime power management */
|
/* Enable runtime power management */
|
||||||
pm_runtime_use_autosuspend(qsdev->dev);
|
pm_runtime_use_autosuspend(qsdev->dev);
|
||||||
pm_runtime_set_autosuspend_delay(qsdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
|
pm_runtime_set_autosuspend_delay(qsdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_MS);
|
||||||
pm_runtime_mark_last_busy(qsdev->dev);
|
|
||||||
pm_runtime_put_noidle(qsdev->dev);
|
pm_runtime_put_noidle(qsdev->dev);
|
||||||
pm_runtime_put_autosuspend(qsdev->dev);
|
pm_runtime_put_autosuspend(qsdev->dev);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,6 @@ static int quickspi_hid_raw_request(struct hid_device *hid,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
pm_runtime_mark_last_busy(qsdev->dev);
|
|
||||||
pm_runtime_put_autosuspend(qsdev->dev);
|
pm_runtime_put_autosuspend(qsdev->dev);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue