]> git.karo-electronics.de Git - linux-beck.git/commit
Staging: rt28xx: Make PCI_{MAP,UNMAP}_SINGLE type-safe
authorBen Hutchings <ben@decadent.org.uk>
Mon, 29 Mar 2010 00:24:45 +0000 (01:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:42 +0000 (11:35 -0700)
commit9fd453c981b07f8cd501a938085b901b0c8c0bf5
tree7de15b19a9178f57ae71e3a46664e9f078756579
parent5d6892b3c6811cfd20e3d71d89fa77f4b6bd089b
Staging: rt28xx: Make PCI_{MAP,UNMAP}_SINGLE type-safe

To avoid recurrence of bugs such as <http://bugs.debian.org/575726>,
change the type of the first parameter to linux_pci_{map,unmap}_single()
from void * to struct rt_rtmp_adapter *.  Also do not define the macros
PCI_{MAP,UNMAP}_SINGLE() when building the rt2870sta driver; they are
not used and if they were that would be a bug.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>,
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rt2860/rt_linux.h
drivers/staging/rt2860/rt_pci_rbus.c