]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c9d24869204d2431810e953d4a8b59f0ca89a47
treec90b47d5236e2a3e0fed9bb219a673e08e4529f9
parent2a52546ca15ff5f8a00e86af8d99d8faad3419a2
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