From: Shubhrajyoti Datta <shubhrajyoti@xxxxxx> The probe memory could be freed after init. Signed-off-by: Shubhrajyoti Datta <shubhrajyoti@xxxxxx> --- Compile tested only. drivers/staging/iio/magnetometer/ak8975.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/iio/magnetometer/ak8975.c b/drivers/staging/iio/magnetometer/ak8975.c index 420f206..694da1e 100644 --- a/drivers/staging/iio/magnetometer/ak8975.c +++ b/drivers/staging/iio/magnetometer/ak8975.c @@ -431,7 +431,7 @@ static struct attribute_group ak8975_attr_group = { .attrs = ak8975_attr, }; -static int ak8975_probe(struct i2c_client *client, +static int __devinit ak8975_probe(struct i2c_client *client, const struct i2c_device_id *id) { struct ak8975_data *data; @@ -510,7 +510,7 @@ exit: return err; } -static int ak8975_remove(struct i2c_client *client) +static int __devexit ak8975_remove(struct i2c_client *client) { struct ak8975_data *data = i2c_get_clientdata(client); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html