]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/i2c/busses/i2c-elektor.c
[PATCH] i2c: Fix i2c-elektor on Alpha
authorStig Telfer <stig@lizardlogic.co.uk>
Fri, 7 Oct 2005 22:21:48 +0000 (00:21 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Oct 2005 21:02:10 +0000 (14:02 -0700)
commit3634ff6a32e90d9db0ec19297e80059143c1aa7f
treec07cf34e839b70d9ab1c604b179943b199d542f3
parent00bffb6e29c5ef12cea7904905f8b959187076c9
[PATCH] i2c: Fix i2c-elektor on Alpha

This patch updates the i2c-elektor driver, enabling it to compile
cleanly, load and run.  The key change is that it uses the new
__iomem/iowrite8/ioread8 functions to abstract the direct or
memory-mapped variants of register access.  Also, the original driver
would crash on module load on the Alpha because the PCI memory region
was not remapped into kernel memory.

I have managed the following testing:

* compiled and tested it on my Alpha UP2000+ system.
* compiles cleanly for x86 but I don't have the hardware to test.

Signed-off-by: Stig Telfer <stig@lizardlogic.co.uk>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/i2c/busses/i2c-elektor.c