File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1281,6 +1281,15 @@ static int wcd9380_probe(struct sdw_slave *pdev,
1281
1281
return component_add (dev , & wcd938x_sdw_component_ops );
1282
1282
}
1283
1283
1284
+ static int wcd9380_remove (struct sdw_slave * pdev )
1285
+ {
1286
+ struct device * dev = & pdev -> dev ;
1287
+
1288
+ component_del (dev , & wcd938x_sdw_component_ops );
1289
+
1290
+ return 0 ;
1291
+ }
1292
+
1284
1293
static const struct sdw_device_id wcd9380_slave_id [] = {
1285
1294
SDW_SLAVE_ENTRY (0x0217 , 0x10d , 0 ),
1286
1295
{},
@@ -1320,6 +1329,7 @@ static const struct dev_pm_ops wcd938x_sdw_pm_ops = {
1320
1329
1321
1330
static struct sdw_driver wcd9380_codec_driver = {
1322
1331
.probe = wcd9380_probe ,
1332
+ .remove = wcd9380_remove ,
1323
1333
.ops = & wcd9380_slave_ops ,
1324
1334
.id_table = wcd9380_slave_id ,
1325
1335
.driver = {
You can’t perform that action at this time.
0 commit comments