Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / bochs / bochs_mm.c
blob1b74f530b07c4e90e2a3f5ca6e1dc2834b509ff9
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 */
5 #include "bochs.h"
7 /* ---------------------------------------------------------------------- */
9 int bochs_mm_init(struct bochs_device *bochs)
11 struct drm_vram_mm *vmm;
13 vmm = drm_vram_helper_alloc_mm(bochs->dev, bochs->fb_base,
14 bochs->fb_size);
15 return PTR_ERR_OR_ZERO(vmm);
18 void bochs_mm_fini(struct bochs_device *bochs)
20 if (!bochs->dev->vram_mm)
21 return;
23 drm_vram_helper_release_mm(bochs->dev);