mali mess
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / misc / mediatek / gpu / mt8127 / mali / ump / linux / ump_osk_misc.c
1 /*
2 * This confidential and proprietary software may be used only as
3 * authorised by a licensing agreement from ARM Limited
4 * (C) COPYRIGHT 2009-2010, 2013-2015 ARM Limited
5 * ALL RIGHTS RESERVED
6 * The entire notice above must be reproduced on all authorised
7 * copies and copies may only be made to the extent permitted
8 * by a licensing agreement from ARM Limited.
9 */
10
11 /**
12 * @file ump_osk_misc.c
13 * Implementation of the OS abstraction layer for the UMP kernel device driver
14 */
15
16
17 #include "ump_osk.h"
18
19 #include <linux/kernel.h>
20 #include "ump_kernel_linux.h"
21
22 /* is called from ump_kernel_constructor in common code */
23 _mali_osk_errcode_t _ump_osk_init(void)
24 {
25 if (0 != ump_kernel_device_initialize()) {
26 return _MALI_OSK_ERR_FAULT;
27 }
28
29 return _MALI_OSK_ERR_OK;
30 }
31
32 _mali_osk_errcode_t _ump_osk_term(void)
33 {
34 ump_kernel_device_terminate();
35 return _MALI_OSK_ERR_OK;
36 }