drm: move pinning/unpinning to buffer attach
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 9 Apr 2013 07:52:54 +0000 (09:52 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 10 Jun 2013 21:54:21 +0000 (07:54 +1000)
commitca793f75d91d61fd0009c4179eb88aac54a74239
treede3b46699dbc6e7481bc1103204c8618769b196e
parent102d6dba306c825cd5c310f73868b130931f47aa
drm: move pinning/unpinning to buffer attach

This allows importing bo's to own device to work without requiring that the buffer is pinned in GART.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c