Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281910
b: refs/heads/master
c: 969996a
h: refs/heads/master
v: v3
  • Loading branch information
Govindraj.R authored and Kevin Hilman committed Dec 15, 2011
1 parent 8bd4b92 commit 0e52d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: a9e210e0b7a344c0e44aa6bf6888176bbc635c42
refs/heads/master: 969996a57fd2345a1141280dddcf9e10fa5f6690
7 changes: 2 additions & 5 deletions trunk/arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,13 @@ static void omap_serial_fill_default_pads(struct omap_board_data *bdata) {}

static int __init omap_serial_early_init(void)
{
int i = 0;

do {
char oh_name[MAX_UART_HWMOD_NAME_LEN];
struct omap_hwmod *oh;
struct omap_uart_state *uart;

snprintf(oh_name, MAX_UART_HWMOD_NAME_LEN,
"uart%d", i + 1);
"uart%d", num_uarts + 1);
oh = omap_hwmod_lookup(oh_name);
if (!oh)
break;
Expand All @@ -284,9 +282,8 @@ static int __init omap_serial_early_init(void)
return -ENODEV;

uart->oh = oh;
uart->num = i++;
uart->num = num_uarts++;
list_add_tail(&uart->node, &uart_list);
num_uarts++;

/*
* NOTE: omap_hwmod_setup*() has not yet been called,
Expand Down

0 comments on commit 0e52d0f

Please sign in to comment.