diff options
Diffstat (limited to 'drivers/video/bfin-lq035q1-fb.c')
-rw-r--r-- | drivers/video/bfin-lq035q1-fb.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/video/bfin-lq035q1-fb.c b/drivers/video/bfin-lq035q1-fb.c index 353c02fe8a95..6fbc75c2f0a1 100644 --- a/drivers/video/bfin-lq035q1-fb.c +++ b/drivers/video/bfin-lq035q1-fb.c | |||
@@ -577,6 +577,7 @@ static int __devinit bfin_lq035q1_probe(struct platform_device *pdev) | |||
577 | info = fbinfo->par; | 577 | info = fbinfo->par; |
578 | info->fb = fbinfo; | 578 | info->fb = fbinfo; |
579 | info->dev = &pdev->dev; | 579 | info->dev = &pdev->dev; |
580 | spin_lock_init(&info->lock); | ||
580 | 581 | ||
581 | info->disp_info = pdev->dev.platform_data; | 582 | info->disp_info = pdev->dev.platform_data; |
582 | 583 | ||
@@ -853,17 +854,7 @@ static struct platform_driver bfin_lq035q1_driver = { | |||
853 | }, | 854 | }, |
854 | }; | 855 | }; |
855 | 856 | ||
856 | static int __init bfin_lq035q1_driver_init(void) | 857 | module_platform_driver(bfin_lq035q1_driver); |
857 | { | ||
858 | return platform_driver_register(&bfin_lq035q1_driver); | ||
859 | } | ||
860 | module_init(bfin_lq035q1_driver_init); | ||
861 | |||
862 | static void __exit bfin_lq035q1_driver_cleanup(void) | ||
863 | { | ||
864 | platform_driver_unregister(&bfin_lq035q1_driver); | ||
865 | } | ||
866 | module_exit(bfin_lq035q1_driver_cleanup); | ||
867 | 858 | ||
868 | MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); | 859 | MODULE_DESCRIPTION("Blackfin TFT LCD Driver"); |
869 | MODULE_LICENSE("GPL"); | 860 | MODULE_LICENSE("GPL"); |