fbdev: sh_mobile_lcdc: Remove board configuration owner field
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 11 Sep 2011 20:59:04 +0000 (22:59 +0200)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Mar 2012 21:40:48 +0000 (22:40 +0100)
The field is unused, remove it.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/video/sh_mobile_lcdcfb.c
include/video/sh_mobile_lcdc.h

index a2e0903..a899b6d 100644 (file)
@@ -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);
index 3681cf6..163f4b7 100644 (file)
@@ -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);