llseek: automatically add .llseek fop
[sfrench/cifs-2.6.git] / drivers / mfd / ab3100-core.c
index 53ebfee548fa3bfbc5311d34c98bfc5b166290b7..b048ecc56db9ca75ad79f1ebf63c75181344fc43 100644 (file)
@@ -583,6 +583,7 @@ static ssize_t ab3100_get_set_reg(struct file *file,
 static const struct file_operations ab3100_get_set_reg_fops = {
        .open = ab3100_get_set_reg_open_file,
        .write = ab3100_get_set_reg,
+       .llseek = noop_llseek,
 };
 
 static struct dentry *ab3100_dir;
@@ -957,7 +958,6 @@ static int __init ab3100_probe(struct i2c_client *client,
        i2c_unregister_device(ab3100->testreg_client);
  exit_no_testreg_client:
  exit_no_detect:
-       i2c_set_clientdata(client, NULL);
        kfree(ab3100);
        return err;
 }
@@ -979,7 +979,6 @@ static int __exit ab3100_remove(struct i2c_client *client)
         * their notifiers so deactivate IRQ
         */
        free_irq(client->irq, ab3100);
-       i2c_set_clientdata(client, NULL);
        kfree(ab3100);
        return 0;
 }