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 <shawn.guo@freescale.com>
static void __exit vivante_exit(void)
{
if (pplatformdev) {
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;
}
platform_device_unregister(pplatformdev);
pplatformdev = NULL;
}