diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2009-07-20 01:48:04 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-08-04 00:02:31 -0400 |
commit | 8a4c47f346cc7a12d0897c05eb3cc1add26b487f (patch) | |
tree | 3beb08565466a2aa5649debd9dad411388afa53a /drivers/gpu/drm/i915/intel_lvds.c | |
parent | 5c61259e6c7290082108e93815f7f72f27da14f4 (diff) |
drm: Remove the unused prefix in DRM_DEBUG_KMS/DRIVER/MODE
We will have to add a prefix when using the macro defintion of DRM_DEBUG_KMS
/DRM_DEBUG_DRIVER/MODE. It is not convenient. We should use the DRM_NAME
as default prefix.
So remove the prefix in the macro definition of DRM_DEBUG_KMS/DRIVER/MODE.
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Acked-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lvds.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lvds.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/gpu/drm/i915/intel_lvds.c b/drivers/gpu/drm/i915/intel_lvds.c index 9ab38efffecf..b59c65d19d81 100644 --- a/drivers/gpu/drm/i915/intel_lvds.c +++ b/drivers/gpu/drm/i915/intel_lvds.c | |||
@@ -38,8 +38,6 @@ | |||
38 | #include "i915_drv.h" | 38 | #include "i915_drv.h" |
39 | #include <linux/acpi.h> | 39 | #include <linux/acpi.h> |
40 | 40 | ||
41 | #define I915_LVDS "i915_lvds" | ||
42 | |||
43 | /* | 41 | /* |
44 | * the following four scaling options are defined. | 42 | * the following four scaling options are defined. |
45 | * #define DRM_MODE_SCALE_NON_GPU 0 | 43 | * #define DRM_MODE_SCALE_NON_GPU 0 |
@@ -673,8 +671,7 @@ static int intel_lvds_set_property(struct drm_connector *connector, | |||
673 | struct drm_crtc *crtc = connector->encoder->crtc; | 671 | struct drm_crtc *crtc = connector->encoder->crtc; |
674 | struct intel_lvds_priv *lvds_priv = intel_output->dev_priv; | 672 | struct intel_lvds_priv *lvds_priv = intel_output->dev_priv; |
675 | if (value == DRM_MODE_SCALE_NON_GPU) { | 673 | if (value == DRM_MODE_SCALE_NON_GPU) { |
676 | DRM_DEBUG_KMS(I915_LVDS, | 674 | DRM_DEBUG_KMS("non_GPU property is unsupported\n"); |
677 | "non_GPU property is unsupported\n"); | ||
678 | return 0; | 675 | return 0; |
679 | } | 676 | } |
680 | if (lvds_priv->fitting_mode == value) { | 677 | if (lvds_priv->fitting_mode == value) { |
@@ -731,8 +728,7 @@ static const struct drm_encoder_funcs intel_lvds_enc_funcs = { | |||
731 | 728 | ||
732 | static int __init intel_no_lvds_dmi_callback(const struct dmi_system_id *id) | 729 | static int __init intel_no_lvds_dmi_callback(const struct dmi_system_id *id) |
733 | { | 730 | { |
734 | DRM_DEBUG_KMS(I915_LVDS, | 731 | DRM_DEBUG_KMS("Skipping LVDS initialization for %s\n", id->ident); |
735 | "Skipping LVDS initialization for %s\n", id->ident); | ||
736 | return 1; | 732 | return 1; |
737 | } | 733 | } |
738 | 734 | ||
@@ -1013,7 +1009,7 @@ out: | |||
1013 | return; | 1009 | return; |
1014 | 1010 | ||
1015 | failed: | 1011 | failed: |
1016 | DRM_DEBUG_KMS(I915_LVDS, "No LVDS modes found, disabling.\n"); | 1012 | DRM_DEBUG_KMS("No LVDS modes found, disabling.\n"); |
1017 | if (intel_output->ddc_bus) | 1013 | if (intel_output->ddc_bus) |
1018 | intel_i2c_destroy(intel_output->ddc_bus); | 1014 | intel_i2c_destroy(intel_output->ddc_bus); |
1019 | drm_connector_cleanup(connector); | 1015 | drm_connector_cleanup(connector); |