Skip to content

Commit

Permalink
drm/i915: remove unused power_well/get_cdclk_freq api
Browse files Browse the repository at this point in the history
After switching to using the component interface this API isn't needed
any more.

v2-3: unchanged
v4:
- move the removal of i915_powerwell.h to this patch (Takashi)

Signed-off-by: Imre Deak <[email protected]>
Reviewed-by: Takashi Iwai <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
  • Loading branch information
ideak authored and danvet committed Jan 12, 2015
1 parent d7055bd commit fcf3aac
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 93 deletions.
56 changes: 0 additions & 56 deletions drivers/gpu/drm/i915/intel_runtime_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@

#include "i915_drv.h"
#include "intel_drv.h"
#include <drm/i915_powerwell.h>

/**
* DOC: runtime pm
Expand All @@ -50,8 +49,6 @@
* present for a given platform.
*/

static struct i915_power_domains *hsw_pwr;

#define for_each_power_well(i, power_well, domain_mask, power_domains) \
for (i = 0; \
i < (power_domains)->power_well_count && \
Expand Down Expand Up @@ -1071,10 +1068,8 @@ int intel_power_domains_init(struct drm_i915_private *dev_priv)
*/
if (IS_HASWELL(dev_priv->dev)) {
set_power_wells(power_domains, hsw_power_wells);
hsw_pwr = power_domains;
} else if (IS_BROADWELL(dev_priv->dev)) {
set_power_wells(power_domains, bdw_power_wells);
hsw_pwr = power_domains;
} else if (IS_CHERRYVIEW(dev_priv->dev)) {
set_power_wells(power_domains, chv_power_wells);
} else if (IS_VALLEYVIEW(dev_priv->dev)) {
Expand Down Expand Up @@ -1118,8 +1113,6 @@ void intel_power_domains_fini(struct drm_i915_private *dev_priv)
* the power well is not enabled, so just enable it in case
* we're going to unload/reload. */
intel_display_set_init_power(dev_priv, true);

hsw_pwr = NULL;
}

static void intel_power_domains_resume(struct drm_i915_private *dev_priv)
Expand Down Expand Up @@ -1328,52 +1321,3 @@ void intel_runtime_pm_enable(struct drm_i915_private *dev_priv)
pm_runtime_put_autosuspend(device);
}

/* Display audio driver power well request */
int i915_request_power_well(void)
{
struct drm_i915_private *dev_priv;

if (!hsw_pwr)
return -ENODEV;

dev_priv = container_of(hsw_pwr, struct drm_i915_private,
power_domains);
intel_display_power_get(dev_priv, POWER_DOMAIN_AUDIO);
return 0;
}
EXPORT_SYMBOL_GPL(i915_request_power_well);

/* Display audio driver power well release */
int i915_release_power_well(void)
{
struct drm_i915_private *dev_priv;

if (!hsw_pwr)
return -ENODEV;

dev_priv = container_of(hsw_pwr, struct drm_i915_private,
power_domains);
intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO);
return 0;
}
EXPORT_SYMBOL_GPL(i915_release_power_well);

/*
* Private interface for the audio driver to get CDCLK in kHz.
*
* Caller must request power well using i915_request_power_well() prior to
* making the call.
*/
int i915_get_cdclk_freq(void)
{
struct drm_i915_private *dev_priv;

if (!hsw_pwr)
return -ENODEV;

dev_priv = container_of(hsw_pwr, struct drm_i915_private,
power_domains);

return intel_ddi_get_cdclk_freq(dev_priv);
}
EXPORT_SYMBOL_GPL(i915_get_cdclk_freq);
37 changes: 0 additions & 37 deletions include/drm/i915_powerwell.h

This file was deleted.

0 comments on commit fcf3aac

Please sign in to comment.