diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2011-09-12 00:59:04 +0400 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2012-03-13 01:40:48 +0400 |
commit | aa7b5b0b2db6d33a8104e411cb74c15a4983b286 (patch) | |
tree | 669d769448c8d76434be2e6e320c002e1ac15b71 | |
parent | ca0a0cd7986e1704d5c60be9ae096ba51b2084f7 (diff) | |
download | linux-aa7b5b0b2db6d33a8104e411cb74c15a4983b286.tar.xz |
fbdev: sh_mobile_lcdc: Remove board configuration owner field
The field is unused, remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | drivers/video/sh_mobile_lcdcfb.c | 8 | ||||
-rw-r--r-- | include/video/sh_mobile_lcdc.h | 2 |
2 files changed, 2 insertions, 8 deletions
diff --git a/drivers/video/sh_mobile_lcdcfb.c b/drivers/video/sh_mobile_lcdcfb.c index a2e0903466b3..a899b6df46cc 100644 --- a/drivers/video/sh_mobile_lcdcfb.c +++ b/drivers/video/sh_mobile_lcdcfb.c @@ -345,20 +345,16 @@ static void sh_mobile_lcdc_display_on(struct sh_mobile_lcdc_chan *ch) } /* HDMI must be enabled before LCDC configuration */ - if (board_cfg->display_on && try_module_get(board_cfg->owner)) { + if (board_cfg->display_on) board_cfg->display_on(board_cfg->board_data, ch->info); - module_put(board_cfg->owner); - } } static void sh_mobile_lcdc_display_off(struct sh_mobile_lcdc_chan *ch) { struct sh_mobile_lcdc_board_cfg *board_cfg = &ch->cfg.board_cfg; - if (board_cfg->display_off && try_module_get(board_cfg->owner)) { + if (board_cfg->display_off) board_cfg->display_off(board_cfg->board_data); - module_put(board_cfg->owner); - } if (ch->tx_dev) ch->tx_dev->ops->display_off(ch->tx_dev); diff --git a/include/video/sh_mobile_lcdc.h b/include/video/sh_mobile_lcdc.h index 3681cf62a88d..163f4b704bf9 100644 --- a/include/video/sh_mobile_lcdc.h +++ b/include/video/sh_mobile_lcdc.h @@ -147,9 +147,7 @@ struct sh_mobile_lcdc_sys_bus_ops { unsigned long (*read_data)(void *handle); }; -struct module; struct sh_mobile_lcdc_board_cfg { - struct module *owner; void *board_data; int (*setup_sys)(void *board_data, void *sys_ops_handle, struct sh_mobile_lcdc_sys_bus_ops *sys_ops); |