From: Shawn Guo Date: Fri, 13 Jun 2014 03:37:29 +0000 (+0800) Subject: ENGR00317981: drm: vivante: drm_platform_exit is gone X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e95ca31daee360b6ff5ad268809a760813f46b2d;p=karo-tx-linux.git ENGR00317981: drm: vivante: drm_platform_exit is gone The function drm_platform_exit() is removed by commit e2577d455adb (drm: rip out drm_platform_exit). To fix the build error below, we need to call drm_put_dev directly. CC drivers/gpu/drm/vivante/vivante_drv.o drivers/gpu/drm/vivante/vivante_drv.c: In function ‘vivante_exit’: drivers/gpu/drm/vivante/vivante_drv.c:100:3: error: implicit declaration of function ‘drm_platform_exit’ [-Werror=implicit-function-declaration] Note, this only works with commit "ENGR00317981: drm: set drm_device pointer into drvdata". Signed-off-by: Shawn Guo --- diff --git a/drivers/gpu/drm/vivante/vivante_drv.c b/drivers/gpu/drm/vivante/vivante_drv.c index c9878e359f26..d5a915bba192 100644 --- a/drivers/gpu/drm/vivante/vivante_drv.c +++ b/drivers/gpu/drm/vivante/vivante_drv.c @@ -95,7 +95,8 @@ static int __init vivante_init(void) static void __exit vivante_exit(void) { if (pplatformdev) { - drm_platform_exit(&driver, pplatformdev); + /* The drvdata is set in drm_get_platform_dev() */ + drm_put_dev(platform_get_drvdata(pplatformdev)); platform_device_unregister(pplatformdev); pplatformdev = NULL; }