OSDN Git Service

staging: mt7621-pci: add phy exit call if phy_power_on call fails
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 21 Jun 2019 06:15:15 +0000 (08:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 14:50:10 +0000 (16:50 +0200)
commitcdf6f83b3cca8ba89b6e492c590282395df35470
tree830820ebd26f825885d6399267b9e1d0b0159ea0
parent36e92f611e33d5e00849d175805fc6c6d4332c25
staging: mt7621-pci: add phy exit call if phy_power_on call fails

Add missing call to 'phy_exit' function if the phy_power_on call fails.
With this call added the error path is properly handled.

Fixes: 07420a02b003 ("staging: mt7621-pci: use gpio perst instead of builtin behaviour")
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-pci/pci-mt7621.c