Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3c52b9b3 authored by Nirmal Abraham's avatar Nirmal Abraham
Browse files

fbmem: Remove mutex use from do_fb_ioctl()



Remove use of this mutex to allow multiple msm_fb ioctl calls.
Mutexes within the individual fb_ioctl calls already provide
the necessary locking.

This is based on android-msm-2.6.35 commit:
a809819d (msm_fb: display: Add delay kickoff to MDDI)
which includes this change among others.

Change-Id: Iee68bf3556ab913f916868988f4adbad1ed6b2a0
Signed-off-by: default avatarKuogee Hsieh <khsieh@codeaurora.org>
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
Signed-off-by: default avatarNirmal Abraham <nabrah@codeaurora.org>
parent 7af3eef5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1219,8 +1219,6 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
		console_unlock();
		break;
	default:
		if (!lock_fb_info(info))
			return -ENODEV;
		fb = info->fbops;
		if (fb->fb_ioctl_v2)
			ret = fb->fb_ioctl_v2(info, cmd, arg, file);
@@ -1228,7 +1226,6 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
			ret = fb->fb_ioctl(info, cmd, arg);
		else
			ret = -ENOTTY;
		unlock_fb_info(info);
	}
	return ret;
}