lkml.org 
[lkml]   [2014]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] gpu: drm: gma500: tc35876x-dsi-lvds.c: Remove unused function
Date
Remove the function tc35876x_exit() that is not used anywhere.

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c | 10 ----------
drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h | 1 -
2 files changed, 11 deletions(-)

diff --git a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c
index 771ff66..3def842 100644
--- a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c
+++ b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.c
@@ -817,13 +817,3 @@ void tc35876x_init(struct drm_device *dev)

tc35876x_brightness_init(dev);
}
-
-void tc35876x_exit(void)
-{
- pr_debug("%s\n", __func__);
-
- i2c_del_driver(&tc35876x_bridge_i2c_driver);
-
- if (cmi_lcd_i2c_client)
- i2c_del_driver(&cmi_lcd_i2c_driver);
-}
diff --git a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h
index b14b7f9..cf9d6bb 100644
--- a/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h
+++ b/drivers/gpu/drm/gma500/tc35876x-dsi-lvds.h
@@ -31,7 +31,6 @@ void tc35876x_brightness_control(struct drm_device *dev, int level);
void tc35876x_toshiba_bridge_panel_off(struct drm_device *dev);
void tc35876x_toshiba_bridge_panel_on(struct drm_device *dev);
void tc35876x_init(struct drm_device *dev);
-void tc35876x_exit(void);

extern const struct panel_funcs mdfld_tc35876x_funcs;

--
1.7.10.4


\
 
 \ /
  Last update: 2014-12-07 14:01    [W:0.025 / U:0.676 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site