mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
rk fb: fix complie error when CONFIG_ROCKCHIP_IOMMU is not set
This commit is contained in:
@@ -2445,8 +2445,11 @@ static int rk_fb_ioctl(struct fb_info *info, unsigned int cmd,
|
||||
u32 hwc_phy[1];
|
||||
if (copy_from_user(hwc_phy, argp, 4))
|
||||
return -EFAULT;
|
||||
#ifdef CONFIG_ROCKCHIP_IOMMU
|
||||
if (!dev_drv->iommu_enabled) {
|
||||
#endif
|
||||
fix->smem_start = hwc_phy[0];
|
||||
#ifdef CONFIG_ROCKCHIP_IOMMU
|
||||
} else {
|
||||
int usr_fd;
|
||||
struct ion_handle *hdl;
|
||||
@@ -2483,6 +2486,7 @@ static int rk_fb_ioctl(struct fb_info *info, unsigned int cmd,
|
||||
fix->smem_start = phy_addr;
|
||||
ion_hwc[0] = hdl;
|
||||
}
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
case RK_FBIOSET_YUV_ADDR:
|
||||
|
||||
Reference in New Issue
Block a user