X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fhwmon%2Fadm1025.c;h=526b7ff179ebb83c0bc1197a978e85344424a6c8;hb=736c7b808f38f3bb72941345e11e236ec65dec3d;hp=181dadf420028d1b6c61e64a6f9d35166e7c2ac2;hpb=7bef559455fc71f66f8573cc1aafe1dd33966c1c;p=linux-2.6 diff --git a/drivers/hwmon/adm1025.c b/drivers/hwmon/adm1025.c index 181dadf420..526b7ff179 100644 --- a/drivers/hwmon/adm1025.c +++ b/drivers/hwmon/adm1025.c @@ -50,9 +50,8 @@ #include #include #include -#include -#include #include +#include #include /* @@ -67,7 +66,7 @@ static unsigned short normal_i2c[] = { 0x2c, 0x2d, 0x2e, I2C_CLIENT_END }; * Insmod parameters */ -SENSORS_INSMOD_2(adm1025, ne1619); +I2C_CLIENT_INSMOD_2(adm1025, ne1619); /* * The ADM1025 registers @@ -314,7 +313,7 @@ static int adm1025_attach_adapter(struct i2c_adapter *adapter) { if (!(adapter->class & I2C_CLASS_HWMON)) return 0; - return i2c_detect(adapter, &addr_data, adm1025_detect); + return i2c_probe(adapter, &addr_data, adm1025_detect); } /* @@ -474,7 +473,7 @@ static void adm1025_init_client(struct i2c_client *client) struct adm1025_data *data = i2c_get_clientdata(client); int i; - data->vrm = i2c_which_vrm(); + data->vrm = vid_which_vrm(); /* * Set high limits