Skip to content

Commit fe9f5a5

Browse files
jayxurockchiprkhuangtao
authored andcommitted
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>
1 parent c9f14be commit fe9f5a5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/rockchip/rga2/rga2_drv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2145,7 +2145,7 @@ static int rga2_drv_probe(struct platform_device *pdev)
21452145
if (of_machine_is_compatible("rockchip,rk3368"))
21462146
rk3368 = 1;
21472147

2148-
#if defined(CONFIG_ION_ROCKCHIP)
2148+
#if defined(CONFIG_ION_ROCKCHIP) && (LINUX_VERSION_CODE < KERNEL_VERSION(4, 4, 0))
21492149
data->ion_client = rockchip_ion_client_create("rga");
21502150
if (IS_ERR(data->ion_client)) {
21512151
dev_err(&pdev->dev, "failed to create ion client for rga");

0 commit comments

Comments
 (0)