diff options
author | Inki Dae <inki.dae@samsung.com> | 2011-10-14 00:29:52 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-10-18 05:01:19 -0400 |
commit | a88cab2bb15bbfe7ab39efc45ebd414d30dbb258 (patch) | |
tree | 6ae1ecfb19212f991953181007805b00f226dc57 /drivers | |
parent | ccf4d883f82e10053fa5806f2cd35401012bec84 (diff) |
drm/exynos: fixed build warnings and comments.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 |
2 files changed, 2 insertions, 13 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_drv.h b/drivers/gpu/drm/exynos/exynos_drm_drv.h index 915f5cd4d109..c03683f2ae72 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_drv.h +++ b/drivers/gpu/drm/exynos/exynos_drm_drv.h | |||
@@ -123,7 +123,7 @@ struct exynos_drm_overlay { | |||
123 | * Exynos DRM Display Structure. | 123 | * Exynos DRM Display Structure. |
124 | * - this structure is common to analog tv, digital tv and lcd panel. | 124 | * - this structure is common to analog tv, digital tv and lcd panel. |
125 | * | 125 | * |
126 | * @type: one of exynos_DISPLAY_TYPE_LCD and HDMI. | 126 | * @type: one of EXYNOS_DISPLAY_TYPE_LCD and HDMI. |
127 | * @is_connected: check for that display is connected or not. | 127 | * @is_connected: check for that display is connected or not. |
128 | * @get_edid: get edid modes from display driver. | 128 | * @get_edid: get edid modes from display driver. |
129 | * @get_timing: get timing object from display driver. | 129 | * @get_timing: get timing object from display driver. |
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 68446b3bd8f0..4659c88cdd9b 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c | |||
@@ -90,8 +90,6 @@ struct fimd_context { | |||
90 | 90 | ||
91 | static bool fimd_display_is_connected(struct device *dev) | 91 | static bool fimd_display_is_connected(struct device *dev) |
92 | { | 92 | { |
93 | struct fimd_context *ctx = get_fimd_context(dev); | ||
94 | |||
95 | DRM_DEBUG_KMS("%s\n", __FILE__); | 93 | DRM_DEBUG_KMS("%s\n", __FILE__); |
96 | 94 | ||
97 | /* TODO. */ | 95 | /* TODO. */ |
@@ -110,8 +108,6 @@ static void *fimd_get_timing(struct device *dev) | |||
110 | 108 | ||
111 | static int fimd_check_timing(struct device *dev, void *timing) | 109 | static int fimd_check_timing(struct device *dev, void *timing) |
112 | { | 110 | { |
113 | struct fimd_context *ctx = get_fimd_context(dev); | ||
114 | |||
115 | DRM_DEBUG_KMS("%s\n", __FILE__); | 111 | DRM_DEBUG_KMS("%s\n", __FILE__); |
116 | 112 | ||
117 | /* TODO. */ | 113 | /* TODO. */ |
@@ -121,8 +117,6 @@ static int fimd_check_timing(struct device *dev, void *timing) | |||
121 | 117 | ||
122 | static int fimd_display_power_on(struct device *dev, int mode) | 118 | static int fimd_display_power_on(struct device *dev, int mode) |
123 | { | 119 | { |
124 | struct fimd_context *ctx = get_fimd_context(dev); | ||
125 | |||
126 | DRM_DEBUG_KMS("%s\n", __FILE__); | 120 | DRM_DEBUG_KMS("%s\n", __FILE__); |
127 | 121 | ||
128 | /* TODO. */ | 122 | /* TODO. */ |
@@ -499,7 +493,7 @@ static void fimd_finish_pageflip(struct drm_device *drm_dev, int crtc) | |||
499 | 493 | ||
500 | list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list, | 494 | list_for_each_entry_safe(e, t, &dev_priv->pageflip_event_list, |
501 | base.link) { | 495 | base.link) { |
502 | /* if event's pipe isn't same as crtc then ignor it. */ | 496 | /* if event's pipe isn't same as crtc then ignore it. */ |
503 | if (crtc != e->pipe) | 497 | if (crtc != e->pipe) |
504 | continue; | 498 | continue; |
505 | 499 | ||
@@ -525,7 +519,6 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id) | |||
525 | struct fimd_context *ctx = (struct fimd_context *)dev_id; | 519 | struct fimd_context *ctx = (struct fimd_context *)dev_id; |
526 | struct exynos_drm_subdrv *subdrv = &ctx->subdrv; | 520 | struct exynos_drm_subdrv *subdrv = &ctx->subdrv; |
527 | struct drm_device *drm_dev = subdrv->drm_dev; | 521 | struct drm_device *drm_dev = subdrv->drm_dev; |
528 | struct device *dev = subdrv->manager.dev; | ||
529 | struct exynos_drm_manager *manager = &subdrv->manager; | 522 | struct exynos_drm_manager *manager = &subdrv->manager; |
530 | u32 val; | 523 | u32 val; |
531 | 524 | ||
@@ -543,8 +536,6 @@ static irqreturn_t fimd_irq_handler(int irq, void *dev_id) | |||
543 | 536 | ||
544 | static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) | 537 | static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) |
545 | { | 538 | { |
546 | struct drm_driver *drm_driver = drm_dev->driver; | ||
547 | |||
548 | DRM_DEBUG_KMS("%s\n", __FILE__); | 539 | DRM_DEBUG_KMS("%s\n", __FILE__); |
549 | 540 | ||
550 | /* | 541 | /* |
@@ -569,8 +560,6 @@ static int fimd_subdrv_probe(struct drm_device *drm_dev, struct device *dev) | |||
569 | 560 | ||
570 | static void fimd_subdrv_remove(struct drm_device *drm_dev) | 561 | static void fimd_subdrv_remove(struct drm_device *drm_dev) |
571 | { | 562 | { |
572 | struct drm_driver *drm_driver = drm_dev->driver; | ||
573 | |||
574 | DRM_DEBUG_KMS("%s\n", __FILE__); | 563 | DRM_DEBUG_KMS("%s\n", __FILE__); |
575 | 564 | ||
576 | /* TODO. */ | 565 | /* TODO. */ |