video: bf*: Add missing spinlock init
authorJean Delvare <khali@linux-fr.org>
Thu, 6 Sep 2012 07:23:11 +0000 (09:23 +0200)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sat, 22 Sep 2012 21:35:02 +0000 (21:35 +0000)
It doesn't seem these spinlocks were properly initialized.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/bf54x-lq043fb.c
drivers/video/bfin-lq035q1-fb.c
drivers/video/bfin-t350mcqb-fb.c

index 47702ee..ff5663f 100644 (file)
@@ -525,6 +525,7 @@ static int __devinit bfin_bf54x_probe(struct platform_device *pdev)
        info = fbinfo->par;
        info->fb = fbinfo;
        info->dev = &pdev->dev;
+       spin_lock_init(&info->lock);
 
        platform_set_drvdata(pdev, fbinfo);
 
index 1b21519..6fbc75c 100644 (file)
@@ -577,6 +577,7 @@ static int __devinit bfin_lq035q1_probe(struct platform_device *pdev)
        info = fbinfo->par;
        info->fb = fbinfo;
        info->dev = &pdev->dev;
+       spin_lock_init(&info->lock);
 
        info->disp_info = pdev->dev.platform_data;
 
index 7a0c05f..ae0fb24 100644 (file)
@@ -447,6 +447,7 @@ static int __devinit bfin_t350mcqb_probe(struct platform_device *pdev)
        info = fbinfo->par;
        info->fb = fbinfo;
        info->dev = &pdev->dev;
+       spin_lock_init(&info->lock);
 
        platform_set_drvdata(pdev, fbinfo);