]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: pxa: armcore: fix PCI PIO warnings
authorArnd Bergmann <arnd@arndb.de>
Mon, 30 Apr 2012 13:34:13 +0000 (13:34 +0000)
committerArnd Bergmann <arnd@arndb.de>
Tue, 9 Oct 2012 19:58:01 +0000 (21:58 +0200)
commitf920991b9a39f523d0f9aa90ac3706a4be048905
treee8cb3ea67804a4d3c040f139cc6945483891f00d
parentf57c3893f818726e3a22dd7369a1f6e03f2e3c8f
ARM: pxa: armcore: fix PCI PIO warnings

The it8152 PCI host used on the pxa/cm_x2xx machines
uses the old-style I/O window registration. This should
eventually get converted to pci_ioremap_io() but for
now, let's cast the IT8152_IO_BASE constant to an integer
type to get rid of the warnings.

Without this patch, building cm_x2xx_defconfig results in:

arch/arm/common/it8152.c: In function 'it8152_pci_setup':
arch/arm/common/it8152.c:287:18: warning: assignment makes integer from pointer without a cast [enabled by default]
arch/arm/common/it8152.c:288:16: warning: assignment makes integer from pointer without a cast [enabled by default]
arch/arm/common/it8152.c:291:17: warning: assignment makes integer from pointer without a cast [enabled by default]

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Mike Rapoport <mike@compulab.co.il>
Cc: Haojian Zhuang <haojian.zhuang@gmail.com>
Cc: Eric Miao <eric.y.miao@gmail.com>
arch/arm/common/it8152.c