From: Trent Piepho Date: Wed, 9 Apr 2008 02:19:32 +0000 (+1000) Subject: [POWERPC] Make pci_bus_to_host()'s struct pci_bus * argument const X-Git-Tag: v2.6.26-rc1~1125^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f13f4ca8036516ca1b99a41f95f7dea7e4dce104;p=pandora-kernel.git [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 Acked-by: Benjamin Herrenschmidt Signed-off-by: Paul Mackerras --- Reading git-diff-tree failed