Skip to content

Commit

Permalink
avr32: fix use of non-existing portnr variable in at32_map_usart()
Browse files Browse the repository at this point in the history
This patch fixes the use of the non-existing portnr variable in
at32_map_usart() to use the provided line number instead. Typo was introduced
in commit 2b348e2.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
  • Loading branch information
Hans-Christian Egtvedt committed Jun 14, 2011
1 parent 2c53b43 commit 7bbf1d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/avr32/mach-at32ap/at32ap700x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ void __init at32_map_usart(unsigned int hw_id, unsigned int line, int flags)
}

pdata = pdev->dev.platform_data;
pdata->num = portnr;
pdata->num = line;
at32_usarts[line] = pdev;
}

Expand Down

0 comments on commit 7bbf1d4

Please sign in to comment.