]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: dmabounce: no need to check dev->bus type in needs_bounce function
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Jul 2011 07:34:33 +0000 (08:34 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 4 Jul 2011 07:39:56 +0000 (08:39 +0100)
commited18e5513276bae457cfcb912673593a1efa6d51
tree16dd1ae0911bad1d22c213f9e59ef86f916c1c94
parent493803e04c66ff81161dc0d237f2f0e0deee9bbf
ARM: dmabounce: no need to check dev->bus type in needs_bounce function

As the needs_bounce function is passed at DMA bounce register time,
we already know what the device bus type is, so we don't need to check
it each time the needs_bounce function is called.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/it8152.c
arch/arm/mach-ixp4xx/common-pci.c