aboutsummaryrefslogtreecommitdiff
path: root/fs/sysv
diff options
context:
space:
mode:
authorTobias Klauser2011-03-28 13:57:11 +0200
committerGreg Kroah-Hartman2011-04-19 16:31:19 -0700
commita664ec9675d77aa2196e797afa5516d3e476da77 (patch)
tree31d01adbd517d31fb20a1538453ee5d62ee98df4 /fs/sysv
parent0259894c732837c801565d038eaecdcf8fc5bbe7 (diff)
serial: altera_uart: Scan for a free port if platform device id is -1
Devices extracted from device tree all seem to have pdev->id set to -1. Up until now we mapped all devices with id -1 to the first device. This behaviour could lead to problems when using more than one Altera UART in a system. This patch changes the behaviour of the driver to scan for the next free id in case the id is -1. Because we cannot refer back to the assigned id in altera_uart_remove, the port instance needs to be stored in device drvdata. Reported-by: David Smoot <davidsmoot@gmail.com> Cc: Anton Vorontsov <cbouatmailru@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysv')
0 files changed, 0 insertions, 0 deletions