From 529d1a361978ab6f986514d852e0eebc0a2c4040 Mon Sep 17 00:00:00 2001 From: Daniel Walker Date: Thu, 17 Jun 2010 14:18:53 -0700 Subject: drivers: video: msm: drop some unused variables Just dropping a couple of warnings from this driver, linux-2.6/drivers/video/msm/mdp.c: In function 'get_img': linux-2.6/drivers/video/msm/mdp.c:261: warning: unused variable 'vstart' linux-2.6/drivers/video/msm/mddi.c: In function 'mddi_handle_rev_data_avail': linux-2.6/drivers/video/msm/mddi.c:193: warning: unused variable 'i' linux-2.6/drivers/video/msm/mddi.c:190: warning: unused variable 'rev' Signed-off-by: Daniel Walker --- drivers/video/msm/mddi.c | 2 -- drivers/video/msm/mdp.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/video/msm/mddi.c b/drivers/video/msm/mddi.c index c1ff271017a..844eff3ca8e 100644 --- a/drivers/video/msm/mddi.c +++ b/drivers/video/msm/mddi.c @@ -187,10 +187,8 @@ static void mddi_wait_interrupt(struct mddi_info *mddi, uint32_t intmask); static void mddi_handle_rev_data_avail(struct mddi_info *mddi) { - union mddi_rev *rev = mddi->rev_data; uint32_t rev_data_count; uint32_t rev_crc_err_count; - int i; struct reg_read_info *ri; size_t prev_offset; uint16_t length; diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c index 19c01c6208e..3c28db03ad3 100644 --- a/drivers/video/msm/mdp.c +++ b/drivers/video/msm/mdp.c @@ -258,7 +258,6 @@ int get_img(struct mdp_img *img, struct fb_info *info, { int put_needed, ret = 0; struct file *file; - unsigned long vstart; file = fget_light(img->memory_id, &put_needed); if (file == NULL) -- cgit v1.2.3-70-g09d2 From 461cbe77d0a4f887c33a3a95ea68a7daf23b4302 Mon Sep 17 00:00:00 2001 From: Gregory Bean Date: Wed, 28 Jul 2010 10:22:13 -0700 Subject: video: msm: Fix section mismatch in mddi.c. Repair a section mismatch between the mddi driver's platform_driver structure and its probe method. Signed-off-by: Gregory Bean Signed-off-by: Daniel Walker --- drivers/video/msm/mddi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/msm/mddi.c b/drivers/video/msm/mddi.c index 844eff3ca8e..7c316c34dfc 100644 --- a/drivers/video/msm/mddi.c +++ b/drivers/video/msm/mddi.c @@ -668,7 +668,7 @@ static int __init mddi_rev_data_setup(struct mddi_info *mddi) return 0; } -static int __init mddi_probe(struct platform_device *pdev) +static int __devinit mddi_probe(struct platform_device *pdev) { struct msm_mddi_platform_data *pdata = pdev->dev.platform_data; struct mddi_info *mddi = &mddi_info[pdev->id]; -- cgit v1.2.3-70-g09d2