Skip to content
  • Stig Telfer's avatar
    [PATCH] i2c: Fix i2c-elektor on Alpha · 3634ff6a
    Stig Telfer authored
    
    
    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: default avatarStig Telfer <stig@lizardlogic.co.uk>
    Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    3634ff6a