]> git.baikalelectronics.ru Git - kernel.git/commit
via-ircc: Use pci_{get, set}_drvdata() instead of static pointer variable
authorBen Hutchings <ben@decadent.org.uk>
Mon, 28 Mar 2011 17:10:43 +0000 (17:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 30 Mar 2011 07:12:32 +0000 (00:12 -0700)
commit72200728e551121e3103584afd0154d619bb8cc5
tree26734a7c7c65a0ee856f31a5e9634778b6041f48
parent841cc44483f1699d2921fcfd6d217608c5a52db6
via-ircc: Use pci_{get, set}_drvdata() instead of static pointer variable

via-ircc still maintains its own array of device pointers in Linux 2.4
style.  Worse, it always uses index 0, so it will crash if there are
multiple suitable devices in the system.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/irda/via-ircc.c