dev_warn(dev, "resetting control %02x -> %02x\n",
ctrl, new_ctrl);
- if ((err = pcf8583_set_ctrl(client, &new_ctrl)) < 0)
+ err = pcf8583_set_ctrl(client, &new_ctrl);
+ if (err < 0)
return err;
}
return 0;
}
-static int pcf8583_remove(struct i2c_client *client)
-{
- return 0;
-}
-
static const struct i2c_device_id pcf8583_id[] = {
{ "pcf8583", 0 },
{ }
.owner = THIS_MODULE,
},
.probe = pcf8583_probe,
- .remove = pcf8583_remove,
.id_table = pcf8583_id,
};