File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -244,14 +244,16 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev)
244
244
IRQF_ONESHOT , dev_name (dev ), dwc3_imx );
245
245
if (err ) {
246
246
dev_err (dev , "failed to request IRQ #%d --> %d\n" , irq , err );
247
- goto depopulate ;
247
+ goto put_dwc3 ;
248
248
}
249
249
250
250
device_set_wakeup_capable (dev , true);
251
251
pm_runtime_put (dev );
252
252
253
253
return 0 ;
254
254
255
+ put_dwc3 :
256
+ put_device (& dwc3_imx -> dwc3 -> dev );
255
257
depopulate :
256
258
of_platform_depopulate (dev );
257
259
remove_swnode :
@@ -265,8 +267,11 @@ static int dwc3_imx8mp_probe(struct platform_device *pdev)
265
267
266
268
static void dwc3_imx8mp_remove (struct platform_device * pdev )
267
269
{
270
+ struct dwc3_imx8mp * dwc3_imx = platform_get_drvdata (pdev );
268
271
struct device * dev = & pdev -> dev ;
269
272
273
+ put_device (& dwc3_imx -> dwc3 -> dev );
274
+
270
275
pm_runtime_get_sync (dev );
271
276
of_platform_depopulate (dev );
272
277
device_remove_software_node (dev );
You can’t perform that action at this time.
0 commit comments