static void intel_th_pti_deactivate(struct intel_th_device *thdev) { struct pti_device *pti = dev_get_drvdata(&thdev->dev); intel_th_trace_disable(thdev); iowrite32(0, pti->base + REG_PTI_CTL); }
static void intel_th_output_deactivate(struct intel_th_device *thdev) { struct intel_th_driver *thdrv = to_intel_th_driver(thdev->dev.driver); if (thdrv->deactivate) thdrv->deactivate(thdev); else intel_th_trace_disable(thdev); }
static void intel_th_output_deactivate(struct intel_th_device *thdev) { struct intel_th_driver *thdrv = to_intel_th_driver_or_null(thdev->dev.driver); if (!thdrv) return; if (thdrv->deactivate) thdrv->deactivate(thdev); else intel_th_trace_disable(thdev); pm_runtime_put(&thdev->dev); module_put(thdrv->driver.owner); }