r8169: use pm_runtime_put_sync in rtl_open error path
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 29 Oct 2020 18:02:53 +0000 (19:02 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Oct 2020 23:35:59 +0000 (16:35 -0700)
commit1c470b53ece5833193a5b28b6e89cb1531c1de8c
treec90b47d5236e2a3e0fed9bb219a673e08e4529f9
parent3a689e34973e8717cd57991c6fcf527dc56062b5
r8169: use pm_runtime_put_sync in rtl_open error path

We can safely runtime-suspend the chip if rtl_open() fails. Therefore
switch the error path to use pm_runtime_put_sync() as well.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://lore.kernel.org/r/aa093b1e-f295-5700-1cb7-954b54dd8f17@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/realtek/r8169_main.c