mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 04:02:20 +00:00
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>
This commit is contained in:
parent
3adbaa30d9
commit
07c8eb325f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user