summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-05-23 15:56:09 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-06-04 10:04:40 +0200
commitd1700f9258552294300083eb62f83262f21ae1db (patch)
tree919ffc52c4343f4bf2ca555a3488135f348ad297 /drivers/video
parentOMAPDSS: fix build when DEBUG_FS or DSS_DEBUG_SUPPORT disabled (diff)
downloadlinux-d1700f9258552294300083eb62f83262f21ae1db.tar.xz
linux-d1700f9258552294300083eb62f83262f21ae1db.zip
OMAPDSS: Taal: fix compilation warning
This patch fixes a warning: drivers/video/omap2/displays/panel-taal.c: In function ‘taal_num_errors_show’: drivers/video/omap2/displays/panel-taal.c:529: warning: ‘errors’ may be used uninitialized in this function Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/omap2/displays/panel-taal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/displays/panel-taal.c b/drivers/video/omap2/displays/panel-taal.c
index 2ce9992f403b..901576eb5a84 100644
--- a/drivers/video/omap2/displays/panel-taal.c
+++ b/drivers/video/omap2/displays/panel-taal.c
@@ -526,7 +526,7 @@ static ssize_t taal_num_errors_show(struct device *dev,
{
struct omap_dss_device *dssdev = to_dss_device(dev);
struct taal_data *td = dev_get_drvdata(&dssdev->dev);
- u8 errors;
+ u8 errors = 0;
int r;
mutex_lock(&td->lock);