restore functionality call that shouldn't have been removed

in cleanup. Dummy adapters must return 0, otherwise they
      will get assigned every functionality!


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1812 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2003-06-23 00:56:25 +00:00
1 parent 7eeec50bfe
commit e9f1938938
1 file changed
+9
+9
View File
@@ -31,10 +31,13 @@
#include <linux/i2c.h>
#include "version.h"
static u32 isa_func(struct i2c_adapter *adapter);
/* This is the actual algorithm we define */
static struct i2c_algorithm isa_algorithm = {
.name = "ISA bus algorithm",
.id = I2C_ALGO_ISA,
.functionality = isa_func,
};
/* There can only be one... */
@@ -45,6 +48,12 @@ static struct i2c_adapter isa_adapter = {
.algo = &isa_algorithm,
};
/* We can't do a thing... */
static u32 isa_func(struct i2c_adapter *adapter)
{
return 0;
}
static int __init i2c_isa_init(void)
{
printk("i2c-isa.o version %s (%s)\n", LM_VERSION, LM_DATE);