Commit 546aee51 authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Daniel Vetter

drm/mgag200: remove unused variables

These variables were assigned some values but they were never used.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 2660801f
...@@ -167,7 +167,6 @@ static int mgag200fb_create(struct drm_fb_helper *helper, ...@@ -167,7 +167,6 @@ static int mgag200fb_create(struct drm_fb_helper *helper,
struct drm_framebuffer *fb; struct drm_framebuffer *fb;
struct drm_gem_object *gobj = NULL; struct drm_gem_object *gobj = NULL;
struct device *device = &dev->pdev->dev; struct device *device = &dev->pdev->dev;
struct mgag200_bo *bo;
int ret; int ret;
void *sysram; void *sysram;
int size; int size;
...@@ -185,7 +184,6 @@ static int mgag200fb_create(struct drm_fb_helper *helper, ...@@ -185,7 +184,6 @@ static int mgag200fb_create(struct drm_fb_helper *helper,
DRM_ERROR("failed to create fbcon backing object %d\n", ret); DRM_ERROR("failed to create fbcon backing object %d\n", ret);
return ret; return ret;
} }
bo = gem_to_mga_bo(gobj);
sysram = vmalloc(size); sysram = vmalloc(size);
if (!sysram) if (!sysram)
......
...@@ -158,7 +158,7 @@ static int mga_g200se_set_plls(struct mga_device *mdev, long clock) ...@@ -158,7 +158,7 @@ static int mga_g200se_set_plls(struct mga_device *mdev, long clock)
static int mga_g200wb_set_plls(struct mga_device *mdev, long clock) static int mga_g200wb_set_plls(struct mga_device *mdev, long clock)
{ {
unsigned int vcomax, vcomin, pllreffreq; unsigned int vcomax, vcomin, pllreffreq;
unsigned int delta, tmpdelta, permitteddelta; unsigned int delta, tmpdelta;
unsigned int testp, testm, testn; unsigned int testp, testm, testn;
unsigned int p, m, n; unsigned int p, m, n;
unsigned int computed; unsigned int computed;
...@@ -172,7 +172,6 @@ static int mga_g200wb_set_plls(struct mga_device *mdev, long clock) ...@@ -172,7 +172,6 @@ static int mga_g200wb_set_plls(struct mga_device *mdev, long clock)
pllreffreq = 48000; pllreffreq = 48000;
delta = 0xffffffff; delta = 0xffffffff;
permitteddelta = clock * 5 / 1000;
for (testp = 1; testp < 9; testp++) { for (testp = 1; testp < 9; testp++) {
if (clock * testp > vcomax) if (clock * testp > vcomax)
...@@ -298,7 +297,7 @@ static int mga_g200wb_set_plls(struct mga_device *mdev, long clock) ...@@ -298,7 +297,7 @@ static int mga_g200wb_set_plls(struct mga_device *mdev, long clock)
static int mga_g200ev_set_plls(struct mga_device *mdev, long clock) static int mga_g200ev_set_plls(struct mga_device *mdev, long clock)
{ {
unsigned int vcomax, vcomin, pllreffreq; unsigned int vcomax, vcomin, pllreffreq;
unsigned int delta, tmpdelta, permitteddelta; unsigned int delta, tmpdelta;
unsigned int testp, testm, testn; unsigned int testp, testm, testn;
unsigned int p, m, n; unsigned int p, m, n;
unsigned int computed; unsigned int computed;
...@@ -310,7 +309,6 @@ static int mga_g200ev_set_plls(struct mga_device *mdev, long clock) ...@@ -310,7 +309,6 @@ static int mga_g200ev_set_plls(struct mga_device *mdev, long clock)
pllreffreq = 50000; pllreffreq = 50000;
delta = 0xffffffff; delta = 0xffffffff;
permitteddelta = clock * 5 / 1000;
for (testp = 16; testp > 0; testp--) { for (testp = 16; testp > 0; testp--) {
if (clock * testp > vcomax) if (clock * testp > vcomax)
...@@ -392,7 +390,7 @@ static int mga_g200ev_set_plls(struct mga_device *mdev, long clock) ...@@ -392,7 +390,7 @@ static int mga_g200ev_set_plls(struct mga_device *mdev, long clock)
static int mga_g200eh_set_plls(struct mga_device *mdev, long clock) static int mga_g200eh_set_plls(struct mga_device *mdev, long clock)
{ {
unsigned int vcomax, vcomin, pllreffreq; unsigned int vcomax, vcomin, pllreffreq;
unsigned int delta, tmpdelta, permitteddelta; unsigned int delta, tmpdelta;
unsigned int testp, testm, testn; unsigned int testp, testm, testn;
unsigned int p, m, n; unsigned int p, m, n;
unsigned int computed; unsigned int computed;
...@@ -406,7 +404,6 @@ static int mga_g200eh_set_plls(struct mga_device *mdev, long clock) ...@@ -406,7 +404,6 @@ static int mga_g200eh_set_plls(struct mga_device *mdev, long clock)
pllreffreq = 33333; pllreffreq = 33333;
delta = 0xffffffff; delta = 0xffffffff;
permitteddelta = clock * 5 / 1000;
for (testp = 16; testp > 0; testp >>= 1) { for (testp = 16; testp > 0; testp >>= 1) {
if (clock * testp > vcomax) if (clock * testp > vcomax)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment