File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1262,7 +1262,6 @@ static int vc4_dsi_host_attach(struct mipi_dsi_host *host,
1262
1262
struct mipi_dsi_device * device )
1263
1263
{
1264
1264
struct vc4_dsi * dsi = host_to_dsi (host );
1265
- int ret ;
1266
1265
1267
1266
dsi -> lanes = device -> lanes ;
1268
1267
dsi -> channel = device -> channel ;
@@ -1297,18 +1296,15 @@ static int vc4_dsi_host_attach(struct mipi_dsi_host *host,
1297
1296
return 0 ;
1298
1297
}
1299
1298
1300
- ret = component_add (& dsi -> pdev -> dev , & vc4_dsi_ops );
1301
- if (ret ) {
1302
- mipi_dsi_host_unregister (& dsi -> dsi_host );
1303
- return ret ;
1304
- }
1305
-
1306
- return 0 ;
1299
+ return component_add (& dsi -> pdev -> dev , & vc4_dsi_ops );
1307
1300
}
1308
1301
1309
1302
static int vc4_dsi_host_detach (struct mipi_dsi_host * host ,
1310
1303
struct mipi_dsi_device * device )
1311
1304
{
1305
+ struct vc4_dsi * dsi = host_to_dsi (host );
1306
+
1307
+ component_del (& dsi -> pdev -> dev , & vc4_dsi_ops );
1312
1308
return 0 ;
1313
1309
}
1314
1310
@@ -1686,9 +1682,7 @@ static int vc4_dsi_dev_remove(struct platform_device *pdev)
1686
1682
struct device * dev = & pdev -> dev ;
1687
1683
struct vc4_dsi * dsi = dev_get_drvdata (dev );
1688
1684
1689
- component_del (& pdev -> dev , & vc4_dsi_ops );
1690
1685
mipi_dsi_host_unregister (& dsi -> dsi_host );
1691
-
1692
1686
return 0 ;
1693
1687
}
1694
1688
You can’t perform that action at this time.
0 commit comments