Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294238
b: refs/heads/master
c: aa7b5b0
h: refs/heads/master
v: v3
  • Loading branch information
Laurent Pinchart committed Mar 12, 2012
1 parent 06bc53c commit e17db75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ca0a0cd7986e1704d5c60be9ae096ba51b2084f7
refs/heads/master: aa7b5b0b2db6d33a8104e411cb74c15a4983b286
8 changes: 2 additions & 6 deletions trunk/drivers/video/sh_mobile_lcdcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions trunk/include/video/sh_mobile_lcdc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e17db75

Please sign in to comment.