diff options
author | Ville Syrjälä <ville.syrjala@nokia.com> | 2010-03-17 14:58:03 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-08-03 08:18:46 -0400 |
commit | 2f642a17503838e256b8b7e9f1153512e2efc38b (patch) | |
tree | cdf6fb1fb815543d7adb0ce78db87ddc68a822c7 /drivers/video/omap2/omapfb/omapfb-main.c | |
parent | 430571d59a0b51c6541c153ad8b08e72fef26098 (diff) |
OMAP: DSS2: OMAPFB: Convert the memory region locking to rwsem
R/W semaphore is a good fit for the memory region locking pattern.
So use it.
Signed-off-by: Ville Syrjälä <ville.syrjala@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/omapfb/omapfb-main.c')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index eb4338bbaa2b..a3f72ba79958 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -1930,7 +1930,7 @@ static int omapfb_create_framebuffers(struct omapfb2_device *fbdev) | |||
1930 | 1930 | ||
1931 | ofbi->region = &fbdev->regions[i]; | 1931 | ofbi->region = &fbdev->regions[i]; |
1932 | ofbi->region->id = i; | 1932 | ofbi->region->id = i; |
1933 | mutex_init(&ofbi->region->mtx); | 1933 | init_rwsem(&ofbi->region->lock); |
1934 | 1934 | ||
1935 | /* assign these early, so that fb alloc can use them */ | 1935 | /* assign these early, so that fb alloc can use them */ |
1936 | ofbi->rotation_type = def_vrfb ? OMAP_DSS_ROT_VRFB : | 1936 | ofbi->rotation_type = def_vrfb ? OMAP_DSS_ROT_VRFB : |