aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap2/dss/manager-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/omap2/dss/manager-sysfs.c')
-rw-r--r--drivers/video/omap2/dss/manager-sysfs.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/video/omap2/dss/manager-sysfs.c b/drivers/video/omap2/dss/manager-sysfs.c
index de7e7b5b1b7c..37b59fe28dc8 100644
--- a/drivers/video/omap2/dss/manager-sysfs.c
+++ b/drivers/video/omap2/dss/manager-sysfs.c
@@ -285,9 +285,10 @@ static ssize_t manager_alpha_blending_enabled_show(
285{ 285{
286 struct omap_overlay_manager_info info; 286 struct omap_overlay_manager_info info;
287 287
288 mgr->get_manager_info(mgr, &info); 288 if(!dss_has_feature(FEAT_ALPHA_FIXED_ZORDER))
289 return -ENODEV;
289 290
290 WARN_ON(!dss_has_feature(FEAT_ALPHA_FIXED_ZORDER)); 291 mgr->get_manager_info(mgr, &info);
291 292
292 return snprintf(buf, PAGE_SIZE, "%d\n", 293 return snprintf(buf, PAGE_SIZE, "%d\n",
293 info.partial_alpha_enabled); 294 info.partial_alpha_enabled);
@@ -301,7 +302,8 @@ static ssize_t manager_alpha_blending_enabled_store(
301 bool enable; 302 bool enable;
302 int r; 303 int r;
303 304
304 WARN_ON(!dss_has_feature(FEAT_ALPHA_FIXED_ZORDER)); 305 if(!dss_has_feature(FEAT_ALPHA_FIXED_ZORDER))
306 return -ENODEV;
305 307
306 r = strtobool(buf, &enable); 308 r = strtobool(buf, &enable);
307 if (r) 309 if (r)