usb: typec: intel_pmc_mux: Put ACPI device using acpi_dev_put()

For ACPI devices we have a symmetric API to put them, so use it in the driver.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210607205007.71458-3-andy.shevchenko@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by Andy Shevchenko and committed by Greg Kroah-Hartman 184fa76b 843fabdd

+4 -4
+4 -4
drivers/usb/typec/mux/intel_pmc_mux.c
··· 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 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 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 }