summaryrefslogtreecommitdiff
path: root/drivers/hwmon/tc74.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/tc74.c')
-rw-r--r--drivers/hwmon/tc74.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/hwmon/tc74.c b/drivers/hwmon/tc74.c
index fcf638ed16a9..9984373a25fb 100644
--- a/drivers/hwmon/tc74.c
+++ b/drivers/hwmon/tc74.c
@@ -103,8 +103,7 @@ static struct attribute *tc74_attrs[] = {
ATTRIBUTE_GROUPS(tc74);
-static int tc74_probe(struct i2c_client *client,
- const struct i2c_device_id *dev_id)
+static int tc74_probe(struct i2c_client *client)
{
struct device *dev = &client->dev;
struct tc74_data *data;
@@ -152,7 +151,7 @@ static int tc74_probe(struct i2c_client *client,
}
static const struct i2c_device_id tc74_id[] = {
- { "tc74", 0 },
+ { "tc74" },
{}
};
MODULE_DEVICE_TABLE(i2c, tc74_id);
@@ -161,7 +160,7 @@ static struct i2c_driver tc74_driver = {
.driver = {
.name = "tc74",
},
- .probe = tc74_probe,
+ .probe = tc74_probe,
.id_table = tc74_id,
};