mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
drivers: video: rockchip: rga2 fix to use rockchip ion below v4.4
Change-Id: Icde9bb4e5a285588cc7636696473e731b51c40f1 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
@@ -2141,7 +2141,7 @@ static int rga2_drv_probe(struct platform_device *pdev)
|
||||
if (of_machine_is_compatible("rockchip,rk3368"))
|
||||
rk3368 = 1;
|
||||
|
||||
#if defined(CONFIG_ION_ROCKCHIP)
|
||||
#if defined(CONFIG_ION_ROCKCHIP) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0))
|
||||
data->ion_client = rockchip_ion_client_create("rga");
|
||||
if (IS_ERR(data->ion_client)) {
|
||||
dev_err(&pdev->dev, "failed to create ion client for rga");
|
||||
|
||||
Reference in New Issue
Block a user