U8500_MOP: Disable FBIOGETCMAP and FBIOPUTCMAP in fbmem.c
Signed-off-by: John Rigby <john.rigby@linaro.org>
diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
index a15b44e..cbbe449 100644
--- a/drivers/video/fbmem.c
+++ b/drivers/video/fbmem.c
@@ -1072,6 +1072,10 @@
ret = copy_to_user(argp, &fix, sizeof(fix)) ? -EFAULT : 0;
break;
case FBIOPUTCMAP:
+#if defined(CONFIG_MACH_U8500_MOP)
+ ret = EPERM;
+ break;
+#endif
if (copy_from_user(&cmap, argp, sizeof(cmap)))
return -EFAULT;
ret = fb_set_user_cmap(&cmap, info);
@@ -1306,6 +1310,10 @@
case FBIOGETCMAP:
case FBIOPUTCMAP:
+#if defined(CONFIG_MACH_U8500_MOP)
+ ret = EPERM;
+ break;
+#endif
ret = fb_getput_cmap(info, cmd, arg);
break;