]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Make pci_bus_to_host()'s struct pci_bus * argument const
authorTrent Piepho <tpiepho@freescale.com>
Wed, 9 Apr 2008 02:19:32 +0000 (12:19 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 18 Apr 2008 05:37:14 +0000 (15:37 +1000)
commitf13f4ca8036516ca1b99a41f95f7dea7e4dce104
treee7748d0d744a29eaa2ff271e969ee40d152c9d08
parent49a99978849e86541c3bb789788f7f874a841935
[POWERPC] Make pci_bus_to_host()'s struct pci_bus * argument const

A) It's not modified and so it can be made const.  const is good.
B) If one has a function that was given a const pci_bus pointer and you
want to get a pointer to its pci_controller, you'll get a warning from gcc
when you use pci_bus_to_host().  This is the right way to stop that
warning.

Signed-off-by: Trent Piepho <tpiepho@freescale.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-powerpc/pci-bridge.h