drm/ttm: Define a single DRM_FILE_PAGE_OFFSET constant

Most TTM drivers define the constant DRM_FILE_PAGE_OFFSET of the same
value. The only exception is vboxvideo, which is being converted to the
new offset by this patch. Unifying the constants in a single place
simplifies the driver code.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Christian König <christian.koenig@amd.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Этот коммит содержится в:
Thomas Zimmermann
2019-02-07 09:59:28 +01:00
коммит произвёл Alex Deucher
родитель fd16ac8e4c
Коммит aa8e2435b3
15 изменённых файлов: 4 добавлений и 24 удалений

Просмотреть файл

@@ -21,8 +21,6 @@
#include "hibmc_drm_drv.h"
#define DRM_FILE_PAGE_OFFSET (0x100000000ULL >> PAGE_SHIFT)
static inline struct hibmc_drm_private *
hibmc_bdev(struct ttm_bo_device *bd)
{