[PATCH v2 2/4] opencl: Use function pointer instead of call the function directly.