can: peak_pci: Fix the way channels are linked together
authorStephane Grosjean <s.grosjean@peak-system.com>
Wed, 1 Feb 2012 10:05:48 +0000 (11:05 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 2 Feb 2012 23:26:27 +0000 (00:26 +0100)
commit29830406415c227a54af429d7b300aabd4754237
tree9cc1aa1db2647819273ff7b8b74840327da534c0
parentd0a71a7e6de0e0ce9f86c8ba6e13414a9df63e0b
can: peak_pci: Fix the way channels are linked together

Change the way channels objects are linked together by peak_pci_probe()
avoiding any kernel oops when driver is removed. Side effect is that
the list is now browsed from last to first channel.

Signed-off-by: Stephane Grosjean <s.grosjean@peak-system.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/sja1000/peak_pci.c