]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
ARM: OMAP2+: UART: remove unused fields in omap_uart_state.
authorNeilBrown <neilb@suse.de>
Sun, 19 Feb 2012 02:29:31 +0000 (13:29 +1100)
committerKevin Hilman <khilman@ti.com>
Tue, 21 Feb 2012 19:11:49 +0000 (11:11 -0800)
commit 2fd149645eb46d261 (ARM: OMAP2+: UART: Remove
omap_uart_can_sleep and add pm_qos) removed the last usage of
'can_sleep' but did not remove the field.

commit 8612bd22f3036974 (ARM: OMAP2+: UART: Avoid console uart idling
during bootup) removed the last non-trivial use of 'pdev'.

So remove these fields and the one trivial use.

Acked-by: Govindraj.R <govindraj.raja@ti.com>
Signed-off-by: NeilBrown <neilb@suse.de>
[khilman@ti.com: minor changelog edits]
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/serial.c

index f590afc1f673f3afdb3c43cc89f0338ccb2fcc07..0cdd359a128ee855e357daee257ec38231a05658 100644 (file)
 
 struct omap_uart_state {
        int num;
-       int can_sleep;
 
        struct list_head node;
        struct omap_hwmod *oh;
-       struct platform_device *pdev;
 };
 
 static LIST_HEAD(uart_list);
@@ -381,8 +379,6 @@ void __init omap_serial_init_port(struct omap_board_data *bdata,
 
        oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt);
 
-       uart->pdev = pdev;
-
        oh->dev_attr = uart;
 
        if (((cpu_is_omap34xx() || cpu_is_omap44xx()) && bdata->pads)