[PATCH -next] drm/pl111: Fix unused variable warning
Shaokun Zhang
zhangshaokun at hisilicon.com
Mon Aug 5 09:14:16 UTC 2019
vers/gpu/drm/pl111/pl111_display.c: In function ‘pl111_display_init’:
drivers/gpu/drm/pl111/pl111_display.c:551:17: warning: unused variable
‘dev’ [-Wunused-variable]
struct device *dev = drm->dev;
^
Fixes: d6781e490179 ("drm/pl111: Drop special pads config check")
Cc: Linus Walleij <linus.walleij at linaro.org>
Cc: Eric Anholt <eric at anholt.net>
Cc: David Airlie <airlied at linux.ie>
Cc: Daniel Vetter <daniel at ffwll.ch>
Signed-off-by: Shaokun Zhang <zhangshaokun at hisilicon.com>
---
drivers/gpu/drm/pl111/pl111_display.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/gpu/drm/pl111/pl111_display.c b/drivers/gpu/drm/pl111/pl111_display.c
index 8fe65969b7b8..9a153125e5d2 100644
--- a/drivers/gpu/drm/pl111/pl111_display.c
+++ b/drivers/gpu/drm/pl111/pl111_display.c
@@ -548,7 +548,6 @@ pl111_init_clock_divider(struct drm_device *drm)
int pl111_display_init(struct drm_device *drm)
{
struct pl111_drm_dev_private *priv = drm->dev_private;
- struct device *dev = drm->dev;
int ret;
ret = pl111_init_clock_divider(drm);
--
2.7.4
More information about the dri-devel
mailing list