diff options
| author | Ben Skeggs <bskeggs@redhat.com> | 2010-03-17 19:23:19 -0400 |
|---|---|---|
| committer | Ben Skeggs <bskeggs@redhat.com> | 2010-04-08 20:11:57 -0400 |
| commit | 952eb63543552deb1bf1113739d59d29172d7755 (patch) | |
| tree | 65eb851b452463bee215d73919c5483909198aea | |
| parent | 78ad0f7bf2bb667729581f099781fc0b7ae58fcc (diff) | |
drm/nouveau: remove some unused members from drm_nouveau_private
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_channel.c | 2 | ||||
| -rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_drv.h | 9 |
2 files changed, 0 insertions, 11 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_channel.c b/drivers/gpu/drm/nouveau/nouveau_channel.c index 6dfb425cbae9..1fc57ef58295 100644 --- a/drivers/gpu/drm/nouveau/nouveau_channel.c +++ b/drivers/gpu/drm/nouveau/nouveau_channel.c | |||
| @@ -142,7 +142,6 @@ nouveau_channel_alloc(struct drm_device *dev, struct nouveau_channel **chan_ret, | |||
| 142 | GFP_KERNEL); | 142 | GFP_KERNEL); |
| 143 | if (!dev_priv->fifos[channel]) | 143 | if (!dev_priv->fifos[channel]) |
| 144 | return -ENOMEM; | 144 | return -ENOMEM; |
| 145 | dev_priv->fifo_alloc_count++; | ||
| 146 | chan = dev_priv->fifos[channel]; | 145 | chan = dev_priv->fifos[channel]; |
| 147 | INIT_LIST_HEAD(&chan->nvsw.vbl_wait); | 146 | INIT_LIST_HEAD(&chan->nvsw.vbl_wait); |
| 148 | INIT_LIST_HEAD(&chan->fence.pending); | 147 | INIT_LIST_HEAD(&chan->fence.pending); |
| @@ -321,7 +320,6 @@ nouveau_channel_free(struct nouveau_channel *chan) | |||
| 321 | iounmap(chan->user); | 320 | iounmap(chan->user); |
| 322 | 321 | ||
| 323 | dev_priv->fifos[chan->id] = NULL; | 322 | dev_priv->fifos[chan->id] = NULL; |
| 324 | dev_priv->fifo_alloc_count--; | ||
| 325 | kfree(chan); | 323 | kfree(chan); |
| 326 | } | 324 | } |
| 327 | 325 | ||
diff --git a/drivers/gpu/drm/nouveau/nouveau_drv.h b/drivers/gpu/drm/nouveau/nouveau_drv.h index fd17fae9369c..5d3618e4520d 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drv.h +++ b/drivers/gpu/drm/nouveau/nouveau_drv.h | |||
| @@ -534,7 +534,6 @@ struct drm_nouveau_private { | |||
| 534 | 534 | ||
| 535 | struct fb_info *fbdev_info; | 535 | struct fb_info *fbdev_info; |
| 536 | 536 | ||
| 537 | int fifo_alloc_count; | ||
| 538 | struct nouveau_channel *fifos[NOUVEAU_MAX_CHANNEL_NR]; | 537 | struct nouveau_channel *fifos[NOUVEAU_MAX_CHANNEL_NR]; |
| 539 | 538 | ||
| 540 | struct nouveau_engine engine; | 539 | struct nouveau_engine engine; |
| @@ -573,10 +572,6 @@ struct drm_nouveau_private { | |||
| 573 | struct nouveau_gpuobj *sg_ctxdma; | 572 | struct nouveau_gpuobj *sg_ctxdma; |
| 574 | struct page *sg_dummy_page; | 573 | struct page *sg_dummy_page; |
| 575 | dma_addr_t sg_dummy_bus; | 574 | dma_addr_t sg_dummy_bus; |
| 576 | |||
| 577 | /* nottm hack */ | ||
| 578 | struct drm_ttm_backend *sg_be; | ||
| 579 | unsigned long sg_handle; | ||
| 580 | } gart_info; | 575 | } gart_info; |
| 581 | 576 | ||
| 582 | /* nv10-nv40 tiling regions */ | 577 | /* nv10-nv40 tiling regions */ |
| @@ -615,11 +610,7 @@ struct drm_nouveau_private { | |||
| 615 | uint32_t dac_users[4]; | 610 | uint32_t dac_users[4]; |
| 616 | 611 | ||
| 617 | struct nouveau_suspend_resume { | 612 | struct nouveau_suspend_resume { |
| 618 | uint32_t fifo_mode; | ||
| 619 | uint32_t graph_ctx_control; | ||
| 620 | uint32_t graph_state; | ||
| 621 | uint32_t *ramin_copy; | 613 | uint32_t *ramin_copy; |
| 622 | uint64_t ramin_size; | ||
| 623 | } susres; | 614 | } susres; |
| 624 | 615 | ||
| 625 | struct backlight_device *backlight; | 616 | struct backlight_device *backlight; |
