From: Ben Hutchings Date: Mon, 29 Mar 2010 00:24:45 +0000 (+0100) Subject: Staging: rt28xx: Make PCI_{MAP,UNMAP}_SINGLE type-safe X-Git-Tag: v2.6.35-rc1~441^2^2~461 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd453c981b07f8cd501a938085b901b0c8c0bf5;p=pandora-kernel.git Staging: rt28xx: Make PCI_{MAP,UNMAP}_SINGLE type-safe To avoid recurrence of bugs such as , 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 Cc: Bartlomiej Zolnierkiewicz , Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed