aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/overlay.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/dss/overlay.c')
-rw-r--r--drivers/video/omap2/dss/overlay.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c
index 0f08025b1f0..cfbfc57e958 100644
--- a/drivers/video/omap2/dss/overlay.c
+++ b/drivers/video/omap2/dss/overlay.c
@@ -238,6 +238,9 @@ static ssize_t overlay_global_alpha_store(struct omap_overlay *ovl,
238 u8 alpha; 238 u8 alpha;
239 struct omap_overlay_info info; 239 struct omap_overlay_info info;
240 240
241 if (!dss_has_feature(FEAT_GLOBAL_ALPHA))
242 return -ENODEV;
243
241 r = kstrtou8(buf, 0, &alpha); 244 r = kstrtou8(buf, 0, &alpha);
242 if (r) 245 if (r)
243 return r; 246 return r;