Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Andy Shevchenko and committed by
Chanwoo Choi
07c8eb32 3adbaa30

+1 -1
+1 -1
drivers/extcon/extcon-axp288.c
··· 393 393 adev = acpi_dev_get_first_match_dev("INT3496", NULL, -1); 394 394 if (adev) { 395 395 info->id_extcon = extcon_get_extcon_dev(acpi_dev_name(adev)); 396 - put_device(&adev->dev); 396 + acpi_dev_put(adev); 397 397 if (IS_ERR(info->id_extcon)) 398 398 return PTR_ERR(info->id_extcon); 399 399