Merge "msm: vidc: make video driver as module"

This commit is contained in:
qctecmdr 2020-01-13 11:10:34 -08:00 • committed by Gerrit - the friendly Code Review server
commit a263740664
4 changed files with 6 additions and 5 deletions

View file

@ -1,3 +1,5 @@
ifeq ($(CONFIG_QGKI),y)
export CONFIG_MSM_VIDC_V4L2=y
else
export CONFIG_MSM_VIDC_V4L2=m
endif

View file

@ -733,4 +733,5 @@ static void __exit msm_vidc_exit(void)
module_init(msm_vidc_init);
module_exit(msm_vidc_exit);
MODULE_SOFTDEP("pre: subsys-pil-tz");
MODULE_LICENSE("GPL v2");

View file

@ -8,7 +8,6 @@
#define MAX_DEBUG_LEVEL_STRING_LEN 15
#include "msm_vidc_debug.h"
#include "vidc_hfi_api.h"
#include <linux/of_fdt.h>
int msm_vidc_debug = VIDC_ERR | VIDC_PRINTK |
FW_ERROR | FW_FATAL | FW_FTRACE;

View file

@ -6,7 +6,6 @@
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/io.h>
#include <linux/of_fdt.h>
#include "msm_vidc_internal.h"
#include "msm_vidc_debug.h"
@ -594,7 +593,7 @@ static struct msm_vidc_platform_data bengal_data = {
.codec_caps_count = ARRAY_SIZE(bengal_capabilities_v0),
};
static const struct of_device_id msm_vidc_dt_match[] = {
static const struct of_device_id msm_vidc_dt_device[] = {
{
.compatible = "qcom,lahaina-vidc",
.data = &lahaina_data,
@ -606,7 +605,7 @@ static const struct of_device_id msm_vidc_dt_match[] = {
{},
};
MODULE_DEVICE_TABLE(of, msm_vidc_dt_match);
MODULE_DEVICE_TABLE(of, msm_vidc_dt_device);
static int msm_vidc_read_rank(
struct msm_vidc_platform_data *data, struct device *dev)
@ -635,7 +634,7 @@ void *vidc_get_drv_data(struct device *dev)
goto exit;
}
match = of_match_node(msm_vidc_dt_match, dev->of_node);
match = of_match_node(msm_vidc_dt_device, dev->of_node);
if (match)
driver_data = (struct msm_vidc_platform_data *)match->data;