File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -37,15 +37,6 @@ struct dwc3_exynos {
37
37
struct regulator * vdd10 ;
38
38
};
39
39
40
- static int dwc3_exynos_remove_child (struct device * dev , void * unused )
41
- {
42
- struct platform_device * pdev = to_platform_device (dev );
43
-
44
- platform_device_unregister (pdev );
45
-
46
- return 0 ;
47
- }
48
-
49
40
static int dwc3_exynos_probe (struct platform_device * pdev )
50
41
{
51
42
struct dwc3_exynos * exynos ;
@@ -142,7 +133,7 @@ static int dwc3_exynos_remove(struct platform_device *pdev)
142
133
struct dwc3_exynos * exynos = platform_get_drvdata (pdev );
143
134
int i ;
144
135
145
- device_for_each_child (& pdev -> dev , NULL , dwc3_exynos_remove_child );
136
+ of_platform_depopulate (& pdev -> dev );
146
137
147
138
for (i = exynos -> num_clks - 1 ; i >= 0 ; i -- )
148
139
clk_disable_unprepare (exynos -> clks [i ]);
You can’t perform that action at this time.
0 commit comments