diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2011-03-28 13:57:11 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-19 16:31:19 -0700 |
commit | a664ec9675d77aa2196e797afa5516d3e476da77 (patch) | |
tree | 31d01adbd517d31fb20a1538453ee5d62ee98df4 /net/rfkill | |
parent | 0259894c732837c801565d038eaecdcf8fc5bbe7 (diff) | |
download | linux-a664ec9675d77aa2196e797afa5516d3e476da77.tar.gz linux-a664ec9675d77aa2196e797afa5516d3e476da77.tar.bz2 linux-a664ec9675d77aa2196e797afa5516d3e476da77.zip |
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 'net/rfkill')
0 files changed, 0 insertions, 0 deletions