diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-11-03 07:12:00 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-11 06:44:03 -0500 |
commit | 6b806e30a3149816454a7ab71d50c244ebdb27d1 (patch) | |
tree | fc0fa78c18e209646e9d4ac9d5c0f306687b2085 /drivers/media | |
parent | 9c0223b53a26c506ecc7a36ec491afa688eebee1 (diff) |
[media] V4L: mt9m111: fix uninitialised mutex
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/mt9m111.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/video/mt9m111.c b/drivers/media/video/mt9m111.c index f023cc092c2b..dda4685166d5 100644 --- a/drivers/media/video/mt9m111.c +++ b/drivers/media/video/mt9m111.c | |||
@@ -954,6 +954,7 @@ static int mt9m111_probe(struct i2c_client *client, | |||
954 | mt9m111->rect.height = MT9M111_MAX_HEIGHT; | 954 | mt9m111->rect.height = MT9M111_MAX_HEIGHT; |
955 | mt9m111->fmt = &mt9m111_colour_fmts[0]; | 955 | mt9m111->fmt = &mt9m111_colour_fmts[0]; |
956 | mt9m111->lastpage = -1; | 956 | mt9m111->lastpage = -1; |
957 | mutex_init(&mt9m111->power_lock); | ||
957 | 958 | ||
958 | ret = mt9m111_video_probe(client); | 959 | ret = mt9m111_video_probe(client); |
959 | if (ret) { | 960 | if (ret) { |