We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6887a7 commit 44378cdCopy full SHA for 44378cd
sound/soc/codecs/da7213.c
@@ -2022,6 +2022,11 @@ static int da7213_i2c_probe(struct i2c_client *i2c)
2022
return ret;
2023
}
2024
2025
+static void da7213_i2c_remove(struct i2c_client *i2c)
2026
+{
2027
+ pm_runtime_disable(&i2c->dev);
2028
+}
2029
+
2030
static int __maybe_unused da7213_runtime_suspend(struct device *dev)
2031
{
2032
struct da7213_priv *da7213 = dev_get_drvdata(dev);
@@ -2065,6 +2070,7 @@ static struct i2c_driver da7213_i2c_driver = {
2065
2070
.pm = &da7213_pm,
2066
2071
},
2067
2072
.probe_new = da7213_i2c_probe,
2073
+ .remove = da7213_i2c_remove,
2068
2074
.id_table = da7213_i2c_id,
2069
2075
};
2076
0 commit comments