diff options
author | corentin.labbe <corentin.labbe@geomatys.fr> | 2012-01-12 20:32:04 +0100 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-01-12 20:32:04 +0100 |
commit | 65a2d74b76c5ae7c400de6daedeedae308ab0bdd (patch) | |
tree | 0d296ef635e83b0c1966931dc6b8221f6538bc91 /drivers/i2c/busses/i2c-sis5595.c | |
parent | i2c: Fix error value returned by several bus drivers (diff) | |
download | linux-65a2d74b76c5ae7c400de6daedeedae308ab0bdd.tar.xz 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-sis5595.c')
0 files changed, 0 insertions, 0 deletions