diff options
author | Egbert Eich <eich@suse.com> | 2013-07-23 08:44:34 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-07-30 09:43:59 +1000 |
commit | 030f19f0e24c020e3577d9a0da878e417efc2b39 (patch) | |
tree | 8a234e5a878c1fc415c73ce6469e77f57afce6cc /drivers/gpu/drm/mgag200 | |
parent | 782cf7d84a723c93f05c29ce2a2a03e56427fa5b (diff) | |
download | blackbird-op-linux-030f19f0e24c020e3577d9a0da878e417efc2b39.tar.gz blackbird-op-linux-030f19f0e24c020e3577d9a0da878e417efc2b39.zip |
drm/mgag200: Fix logic in mgag200_bo_pin() (v2)
Add missing 'return 0;'.
v2: Simplified patch as suggested by Dave Airlie <airlied@redhat.com>
Signed-off-by: Egbert Eich <eich@suse.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/mgag200')
-rw-r--r-- | drivers/gpu/drm/mgag200/mgag200_ttm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/mgag200/mgag200_ttm.c b/drivers/gpu/drm/mgag200/mgag200_ttm.c index 3acb2b044c7b..13878d5de063 100644 --- a/drivers/gpu/drm/mgag200/mgag200_ttm.c +++ b/drivers/gpu/drm/mgag200/mgag200_ttm.c @@ -353,6 +353,7 @@ int mgag200_bo_pin(struct mgag200_bo *bo, u32 pl_flag, u64 *gpu_addr) bo->pin_count++; if (gpu_addr) *gpu_addr = mgag200_bo_gpu_offset(bo); + return 0; } mgag200_ttm_placement(bo, pl_flag); |