From: Andy Shevchenko Date: Mon, 2 Jan 2023 20:29:19 +0000 (+0200) Subject: extcon: axp288: Replace open coded acpi_dev_put() X-Git-Tag: v6.5-rc1~77^2~16^2~24 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=07c8eb325f29a4a967f939b9fe6cce09f35e25e9;p=linux-block.git extcon: axp288: Replace open coded acpi_dev_put() Instead of calling put_device(&adev->dev) where adev is a pointer to an ACPI device, use specific call, i.e. acpi_dev_put(). Signed-off-by: Andy Shevchenko Signed-off-by: Chanwoo Choi --- diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index 180be768c215..a703a8315634 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c @@ -393,7 +393,7 @@ static int axp288_extcon_probe(struct platform_device *pdev) adev = acpi_dev_get_first_match_dev("INT3496", NULL, -1); if (adev) { info->id_extcon = extcon_get_extcon_dev(acpi_dev_name(adev)); - put_device(&adev->dev); + acpi_dev_put(adev); if (IS_ERR(info->id_extcon)) return PTR_ERR(info->id_extcon);