summaryrefslogtreecommitdiffstats
path: root/drivers/i2c/busses/i2c-designware-pcidrv.c
diff options
context:
space:
mode:
authorcorentin.labbe2012-01-12 20:32:04 +0100
committerJean Delvare2012-01-12 20:32:04 +0100
commit65a2d74b76c5ae7c400de6daedeedae308ab0bdd (patch)
tree0d296ef635e83b0c1966931dc6b8221f6538bc91 /drivers/i2c/busses/i2c-designware-pcidrv.c
parenti2c: Fix error value returned by several bus drivers (diff)
downloadkernel-qcow2-linux-65a2d74b76c5ae7c400de6daedeedae308ab0bdd.tar.gz
kernel-qcow2-linux-65a2d74b76c5ae7c400de6daedeedae308ab0bdd.tar.xz
kernel-qcow2-linux-65a2d74b76c5ae7c400de6daedeedae308ab0bdd.zip
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 <corentin.labbe@geomatys.fr> Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-designware-pcidrv.c')
0 files changed, 0 insertions, 0 deletions