aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/omap2/displays/panel-generic-dpi.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2011-03-31 12:03:51 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2011-05-11 14:19:26 +0300
commit14e4d78485a50312be72a42fd42a28b5b34264dc (patch)
tree5c38d2827999f020c1defdd9a8df5d583e33ded4 /drivers/video/omap2/displays/panel-generic-dpi.c
parent06b2b0d597ab6e3011e8215d02b2aa5f831efbc7 (diff)
OMAP: DSS2: use __exit for selected panel drivers
We can use __exit for the driver remove function in plain dss panels (ie. those that do not need i2c or spi). Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/displays/panel-generic-dpi.c')
-rw-r--r--drivers/video/omap2/displays/panel-generic-dpi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/omap2/displays/panel-generic-dpi.c b/drivers/video/omap2/displays/panel-generic-dpi.c
index 2251f73f366..27b9943eb48 100644
--- a/drivers/video/omap2/displays/panel-generic-dpi.c
+++ b/drivers/video/omap2/displays/panel-generic-dpi.c
@@ -286,7 +286,7 @@ static int generic_dpi_panel_probe(struct omap_dss_device *dssdev)
return 0;
}
-static void generic_dpi_panel_remove(struct omap_dss_device *dssdev)
+static void __exit generic_dpi_panel_remove(struct omap_dss_device *dssdev)
{
struct panel_drv_data *drv_data = dev_get_drvdata(&dssdev->dev);
@@ -359,7 +359,7 @@ static int generic_dpi_panel_check_timings(struct omap_dss_device *dssdev,
static struct omap_dss_driver dpi_driver = {
.probe = generic_dpi_panel_probe,
- .remove = generic_dpi_panel_remove,
+ .remove = __exit_p(generic_dpi_panel_remove),
.enable = generic_dpi_panel_enable,
.disable = generic_dpi_panel_disable,