Skip to content

Commit

Permalink
ARM: OMAP2+: UART: remove unused fields in omap_uart_state.
Browse files Browse the repository at this point in the history
commit 2fd1496 (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 8612bd2 (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>
  • Loading branch information
NeilBrown authored and Kevin Hilman committed Feb 21, 2012
1 parent b01543d commit 867e9f8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,9 @@

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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 867e9f8

Please sign in to comment.