]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 47702ee0a79702c851281bb8b4de960166028424..ff5663f5c64f5d1dbb97448b27658c8f3ea62272 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 1b21519c77e037fffa0a2232fdbebd02260eee5a..6fbc75c2f0a10bc77c8176e5bd05e6eb1dfc940c 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 7a0c05f3537eed362fb11102cf3a5a760185dd6f..ae0fb24b8b4330a6228db62081faf52b0cf8fad6 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);