Make the init and exit functions of the framebuffer similar to the rest
of the code.
Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
}
}
- r = fb__start();
+ r = fb__init(kvm);
if (r < 0) {
pr_err("fb__init() failed with error %d\n", r);
goto fail;
if (r < 0)
pr_warning("irq__exit() failed with error %d\n", r);
- fb__stop();
+ r = fb__exit(kvm);
+ if (r < 0)
+ pr_warning("fb__exit() failed with error %d\n", r);
r = virtio_scsi_exit(kvm);
if (r < 0)
return 0;
}
-int fb__start(void)
+int fb__init(struct kvm *kvm)
{
struct framebuffer *fb;
return 0;
}
-void fb__stop(void)
+int fb__exit(struct kvm *kvm)
{
struct framebuffer *fb;
munmap(fb->mem, fb->mem_size);
}
+
+ return 0;
}
struct framebuffer *fb__register(struct framebuffer *fb);
int fb__attach(struct framebuffer *fb, struct fb_target_operations *ops);
-int fb__start(void);
-void fb__stop(void);
+int fb__init(struct kvm *kvm);
+int fb__exit(struct kvm *kvm);
#endif /* KVM__FRAMEBUFFER_H */