Skip to content

Commit 055e0c0

Browse files
atseanpauldaeinki
authored andcommitted
drm/exynos: Remove unused/useless fimd_context members
This patch removes a few fimd_context members which are either entirely unused or unneeded. Signed-off-by: Sean Paul <[email protected]> Signed-off-by: Inki Dae <[email protected]>
1 parent a968e72 commit 055e0c0

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

drivers/gpu/drm/exynos/exynos_drm_fimd.c

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ struct fimd_win_data {
107107
struct fimd_context {
108108
struct device *dev;
109109
struct drm_device *drm_dev;
110-
int irq;
111-
struct drm_crtc *crtc;
112110
struct clk *bus_clk;
113111
struct clk *lcd_clk;
114112
void __iomem *regs;
@@ -120,7 +118,6 @@ struct fimd_context {
120118
u32 vidcon1;
121119
bool suspended;
122120
int pipe;
123-
struct mutex lock;
124121
wait_queue_head_t wait_vsync_queue;
125122
atomic_t wait_vsync_event;
126123

@@ -697,8 +694,6 @@ static void fimd_dpms(struct exynos_drm_manager *mgr, int mode)
697694

698695
DRM_DEBUG_KMS("%d\n", mode);
699696

700-
mutex_lock(&ctx->lock);
701-
702697
switch (mode) {
703698
case DRM_MODE_DPMS_ON:
704699
/*
@@ -720,8 +715,6 @@ static void fimd_dpms(struct exynos_drm_manager *mgr, int mode)
720715
DRM_DEBUG_KMS("unspecified mode %d\n", mode);
721716
break;
722717
}
723-
724-
mutex_unlock(&ctx->lock);
725718
}
726719

727720
static struct exynos_drm_manager_ops fimd_manager_ops = {
@@ -947,9 +940,7 @@ static int fimd_probe(struct platform_device *pdev)
947940
return -ENXIO;
948941
}
949942

950-
ctx->irq = res->start;
951-
952-
ret = devm_request_irq(dev, ctx->irq, fimd_irq_handler,
943+
ret = devm_request_irq(dev, res->start, fimd_irq_handler,
953944
0, "drm_fimd", ctx);
954945
if (ret) {
955946
dev_err(dev, "irq request failed.\n");
@@ -960,8 +951,6 @@ static int fimd_probe(struct platform_device *pdev)
960951
init_waitqueue_head(&ctx->wait_vsync_queue);
961952
atomic_set(&ctx->wait_vsync_event, 0);
962953

963-
mutex_init(&ctx->lock);
964-
965954
platform_set_drvdata(pdev, &fimd_manager);
966955

967956
fimd_manager.ctx = ctx;

0 commit comments

Comments
 (0)