File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -582,12 +582,12 @@ static int pmc_usb_probe_iom(struct pmc_usb *pmc)
582
582
acpi_dev_free_resource_list (& resource_list );
583
583
584
584
if (!pmc -> iom_base ) {
585
- put_device ( & adev -> dev );
585
+ acpi_dev_put ( adev );
586
586
return - ENOMEM ;
587
587
}
588
588
589
589
if (IS_ERR (pmc -> iom_base )) {
590
- put_device ( & adev -> dev );
590
+ acpi_dev_put ( adev );
591
591
return PTR_ERR (pmc -> iom_base );
592
592
}
593
593
@@ -658,7 +658,7 @@ static int pmc_usb_probe(struct platform_device *pdev)
658
658
usb_role_switch_unregister (pmc -> port [i ].usb_sw );
659
659
}
660
660
661
- put_device ( & pmc -> iom_adev -> dev );
661
+ acpi_dev_put ( pmc -> iom_adev );
662
662
663
663
return ret ;
664
664
}
@@ -674,7 +674,7 @@ static int pmc_usb_remove(struct platform_device *pdev)
674
674
usb_role_switch_unregister (pmc -> port [i ].usb_sw );
675
675
}
676
676
677
- put_device ( & pmc -> iom_adev -> dev );
677
+ acpi_dev_put ( pmc -> iom_adev );
678
678
679
679
return 0 ;
680
680
}
You can’t perform that action at this time.
0 commit comments