From: corentin.labbe Date: Thu, 12 Jan 2012 19:32:04 +0000 (+0100) Subject: i2c-ali1535: enable SPARC support X-Git-Tag: v3.3-rc1~69^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65a2d74b76c5ae7c400de6daedeedae308ab0bdd;p=pandora-kernel.git i2c-ali1535: enable SPARC support The i2c-ali1535 driver doesn't work on SPARC, because it assumes that ioport address are 16-bit wide (address stored in an unsigned short). But on SPARC arch, ioports are mapped in memory and so must be stored in an unsigned long. Use pci_resource_start for getting IOMEM base address, then read the SMBBA of the i2c bus and use these together for I/O access. I would like to thank Jean DELVARE for reviewing my patch. Signed-off-by: LABBE Corentin Signed-off-by: Jean Delvare --- Reading git-diff-tree failed