fb_mem_size = 3 * (fbi->var.xres * fbi->var.yres) << 2;
fb_mem_size = ALIGN(fb_mem_size, SZ_1M);
#if defined(CONFIG_ION_ROCKCHIP)
- handle = ion_alloc(rk_fb->ion_client, (size_t)fb_mem_size, 0, 2, 0);
+ handle = ion_alloc(rk_fb->ion_client, (size_t)fb_mem_size, 0, ION_HEAP(ION_VIDEO_HEAP_ID), 0);
if (IS_ERR(handle)) {
dev_err(fbi->device, "failed to ion_alloc:%ld\n",PTR_ERR(handle));
return -ENOMEM;
}
dev_set_name(&pdev->dev, "rockchip-fb");
#if defined(CONFIG_ION_ROCKCHIP)
- rk_fb->ion_client = ion_client_create(ion_rockchip,"rk_fb");
+ rk_fb->ion_client = rockchip_ion_client_create("rk_fb");
if (IS_ERR(rk_fb->ion_client)) {
dev_err(&pdev->dev, "failed to create ion client for rk fb");
return PTR_ERR(rk_fb->ion_client);
#define RK_LF_MAX_TIMEOUT (1600000UL << 6) //>0.64s
#if defined(CONFIG_ION_ROCKCHIP)
-extern struct ion_device *ion_rockchip;
+extern struct ion_client *rockchip_ion_client_create(const char * name);
#endif
extern int rk_fb_poll_prmry_screen_vblank(void);