Changeset 283

Show
Ignore:
Timestamp:
02/28/99 22:11:14 (14 years ago)
Author:
phil
Message:

(Phil) Made sure probing won't happen on the ISA bus for these SMBus/I2C
device drivers. Specifically, I added these lines:

(in includes list)

#include "i2c-isa.h"

(Near beginning of *-attach-adapter function)

/* Make sure we aren't probing the ISA bus!! */
if (i2c_is_isa_adapter(adapter)) return 0;

This may be redundant is a couple of the files, but it shouldn't hurt.

Location:
lm-sensors/trunk/kernel/chips
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/adm9240.c

    r193 r283  
    312312 
    313313  err = 0; 
     314  /* Make sure we aren't probing the ISA bus!! */ 
     315  if (i2c_is_isa_adapter(adapter)) return 0; 
     316   
    314317  /* The address of the ADM2940 must at least start somewhere in 
    315318     0x2C to 0x2F, but can be changed to be anyelse after that.  
  • lm-sensors/trunk/kernel/chips/eeprom.c

    r233 r283  
    2525#include "sensors.h" 
    2626#include "i2c.h" 
     27#include "i2c-isa.h" 
    2728#include "version.h" 
    2829 
     
    131132 
    132133  err = 0; 
    133  
     134  /* Make sure we aren't probing the ISA bus!! */ 
     135  if (i2c_is_isa_adapter(adapter)) return 0; 
     136   
    134137  /* OK, this is no detection. I know. It will do for now, though.  */ 
    135138 
  • lm-sensors/trunk/kernel/chips/lm75.c

    r207 r283  
    2424#include "sensors.h" 
    2525#include "i2c.h" 
     26#include "i2c-isa.h" 
    2627#include "version.h" 
    2728 
     
    114115 
    115116  err = 0; 
     117  /* Make sure we aren't probing the ISA bus!! */ 
     118  if (i2c_is_isa_adapter(adapter)) return 0; 
    116119 
    117120  /* OK, this is no detection. I know. It will do for now, though.  */ 
  • lm-sensors/trunk/kernel/chips/lm80.c

    r207 r283  
    258258  /* OK, this is no detection. I know. It will do for now, though.  */ 
    259259  err = 0; 
     260   
     261  /* Make sure we aren't probing the ISA bus!! */ 
     262  if (i2c_is_isa_adapter(adapter)) return 0; 
     263   
    260264  for (address = 0x20; (! err) && (address <= 0x2f); address ++) { 
    261265 
  • lm-sensors/trunk/kernel/chips/ltc1710.c

    r233 r283  
    4747#include "sensors.h" 
    4848#include "i2c.h" 
     49#include "i2c-isa.h" 
    4950#include "version.h" 
    5051 
     
    130131 
    131132  err = 0; 
     133  /* Make sure we aren't probing the ISA bus!! */ 
     134  if (i2c_is_isa_adapter(adapter)) return 0; 
    132135 
    133136  /* OK, this is no detection. I know. It will do for now, though.  */