summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2019-08-05 17:14:16 +0800
committerLinus Walleij <linus.walleij@linaro.org>2019-08-05 18:38:59 +0200
commit2e1bc0e86ec77d5568e2bb5767529f86e61cd93a (patch)
treeb73b6e6bd620b96674653293b8e043c3e83f1b5f
parent92cb3e5980638a37c56091e605aa837d0af05a9d (diff)
downloadlinux-2e1bc0e86ec77d5568e2bb5767529f86e61cd93a.tar.bz2
drm/pl111: Fix unused variable warning
drivers/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@linaro.org> Cc: Eric Anholt <eric@anholt.net> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/1564996456-55677-1-git-send-email-zhangshaokun@hisilicon.com
-rw-r--r--drivers/gpu/drm/pl111/pl111_display.c1
1 files changed, 0 insertions, 1 deletions
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);