From: Christian König Date: Tue, 9 Feb 2021 13:15:53 +0000 (+0100) Subject: drm/ttm: fix removal of bo_count sysfs file X-Git-Tag: accepted/tizen/unified/20230118.172025~6402^2~28^2~801 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8a945edd183d296cd1125a2724fb0f3c77d8e9b3;p=platform%2Fkernel%2Flinux-rpi.git drm/ttm: fix removal of bo_count sysfs file Only a zombie leftover from rebasing. Signed-off-by: Christian König Fixes: 3763d635deaa ("drm/ttm: add debugfs directory v2") Reported-by: Gerd Hoffmann Reviewed-by: Daniel Vetter Link: https://patchwork.freedesktop.org/patch/msgid/20210209131756.24650-1-christian.koenig@amd.com --- diff --git a/drivers/gpu/drm/ttm/ttm_device.c b/drivers/gpu/drm/ttm/ttm_device.c index ac0903c..8bb61dd 100644 --- a/drivers/gpu/drm/ttm/ttm_device.c +++ b/drivers/gpu/drm/ttm/ttm_device.c @@ -49,8 +49,6 @@ static void ttm_global_release(void) if (--ttm_glob_use_count > 0) goto out; - kobject_del(&glob->kobj); - kobject_put(&glob->kobj); ttm_mem_global_release(&ttm_mem_glob); __free_page(glob->dummy_read_page); memset(glob, 0, sizeof(*glob)); diff --git a/include/drm/ttm/ttm_device.h b/include/drm/ttm/ttm_device.h index 7bc8bb7..035bbc0 100644 --- a/include/drm/ttm/ttm_device.h +++ b/include/drm/ttm/ttm_device.h @@ -55,7 +55,6 @@ extern struct ttm_global { * Constant after init. */ - struct kobject kobj; struct page *dummy_read_page; spinlock_t lru_lock;