Skip to content

Commit

Permalink
avr32/at32ap: fix mapping of platform device id for USART
Browse files Browse the repository at this point in the history
This patch will fix the mapping of the platform device id when mapping USART
peripheral ID to UART platform device id. Not setting the platform device id
will in most cases (when you map USART > 0 to UART 0) make the console not
available.

Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
  • Loading branch information
Hans-Christian Egtvedt committed Jun 14, 2011
1 parent 7bbf1d4 commit 4137b31
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/avr32/mach-at32ap/at32ap700x.c
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,7 @@ void __init at32_map_usart(unsigned int hw_id, unsigned int line, int flags)
data->regs = (void __iomem *)pdev->resource[0].start;
}

pdev->id = line;
pdata = pdev->dev.platform_data;
pdata->num = line;
at32_usarts[line] = pdev;
Expand Down

0 comments on commit 4137b31

Please sign in to comment.