]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Celleb: bug fix caused by not casting pointer types
authorIshizaki Kou <kou.ishizaki@toshiba.co.jp>
Fri, 2 Mar 2007 07:59:25 +0000 (16:59 +0900)
committerPaul Mackerras <paulus@samba.org>
Wed, 7 Mar 2007 17:09:33 +0000 (04:09 +1100)
commit68b6cc2682e74f190992047cdb7e19f6a1e094c1
tree6fee84637f5172705708ea220d73c99c3521c25a
parent7fc7be7abfbfa188d9e877daad57e14ad579390c
[POWERPC] Celleb: bug fix caused by not casting pointer types

This fixes a bug caused by changes of pointer type in
commit 173800a46fbe11a873b6c42166c3c582af252187.

hose->cfg_addr type is "volatile unsigned int __iomem *", so
"hose->cfg_addr + X" will not make an intended address.

This patch also adds comments for usage of cfg_addr and cfg_data in
pci_controller structure.  We use them in irregular way, and the
original code is short of explanations about them.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/celleb/scc_epci.c