diff options
author | Eric Anholt <eric@anholt.net> | 2009-03-24 15:23:04 -0400 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-06-18 16:00:33 -0400 |
commit | 9a298b2acd771d8a5c0004d8f8e4156c65b11f6b (patch) | |
tree | f8bf6cfe675492cb881abb50d9aa9aa8f38733d6 /drivers/gpu/drm/i915/intel_tv.c | |
parent | 52dc7d32b88156248167864f77a9026abe27b432 (diff) |
drm: Remove memory debugging infrastructure.
It hasn't been used in ages, and having the user tell your how much
memory is being freed at free time is a recipe for disaster even if it
was ever used.
Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_tv.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_tv.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 50d7ed70b338..ea68992e4416 100644 --- a/drivers/gpu/drm/i915/intel_tv.c +++ b/drivers/gpu/drm/i915/intel_tv.c | |||
@@ -1561,8 +1561,7 @@ intel_tv_destroy (struct drm_connector *connector) | |||
1561 | 1561 | ||
1562 | drm_sysfs_connector_remove(connector); | 1562 | drm_sysfs_connector_remove(connector); |
1563 | drm_connector_cleanup(connector); | 1563 | drm_connector_cleanup(connector); |
1564 | drm_free(intel_output, sizeof(struct intel_output) + sizeof(struct intel_tv_priv), | 1564 | kfree(intel_output); |
1565 | DRM_MEM_DRIVER); | ||
1566 | } | 1565 | } |
1567 | 1566 | ||
1568 | 1567 | ||
@@ -1695,8 +1694,8 @@ intel_tv_init(struct drm_device *dev) | |||
1695 | (tv_dac_off & TVDAC_STATE_CHG_EN) != 0) | 1694 | (tv_dac_off & TVDAC_STATE_CHG_EN) != 0) |
1696 | return; | 1695 | return; |
1697 | 1696 | ||
1698 | intel_output = drm_calloc(1, sizeof(struct intel_output) + | 1697 | intel_output = kzalloc(sizeof(struct intel_output) + |
1699 | sizeof(struct intel_tv_priv), DRM_MEM_DRIVER); | 1698 | sizeof(struct intel_tv_priv), GFP_KERNEL); |
1700 | if (!intel_output) { | 1699 | if (!intel_output) { |
1701 | return; | 1700 | return; |
1702 | } | 1701 | } |
@@ -1730,8 +1729,8 @@ intel_tv_init(struct drm_device *dev) | |||
1730 | connector->doublescan_allowed = false; | 1729 | connector->doublescan_allowed = false; |
1731 | 1730 | ||
1732 | /* Create TV properties then attach current values */ | 1731 | /* Create TV properties then attach current values */ |
1733 | tv_format_names = drm_alloc(sizeof(char *) * NUM_TV_MODES, | 1732 | tv_format_names = kmalloc(sizeof(char *) * NUM_TV_MODES, |
1734 | DRM_MEM_DRIVER); | 1733 | GFP_KERNEL); |
1735 | if (!tv_format_names) | 1734 | if (!tv_format_names) |
1736 | goto out; | 1735 | goto out; |
1737 | for (i = 0; i < NUM_TV_MODES; i++) | 1736 | for (i = 0; i < NUM_TV_MODES; i++) |