|
@@ -763,7 +763,7 @@ power_off:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-static int __exit ak8974_remove(struct i2c_client *i2c)
|
|
|
+static int ak8974_remove(struct i2c_client *i2c)
|
|
|
{
|
|
|
struct iio_dev *indio_dev = i2c_get_clientdata(i2c);
|
|
|
struct ak8974 *ak8974 = iio_priv(indio_dev);
|
|
@@ -845,7 +845,7 @@ static struct i2c_driver ak8974_driver = {
|
|
|
.of_match_table = of_match_ptr(ak8974_of_match),
|
|
|
},
|
|
|
.probe = ak8974_probe,
|
|
|
- .remove = __exit_p(ak8974_remove),
|
|
|
+ .remove = ak8974_remove,
|
|
|
.id_table = ak8974_id,
|
|
|
};
|
|
|
module_i2c_driver(ak8974_driver);
|