summaryrefslogtreecommitdiffstats
path: root/drivers/phy/phy-rockchip-emmc.c
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@free-electrons.com>2016-06-13 13:45:48 +0200
committerKishon Vijay Abraham I <kishon@ti.com>2016-06-17 15:18:59 +0200
commit5cf700ac9d50353dc5b8194a57c6f40bf1fc4424 (patch)
tree2804c5a30e4d8cc26cdbbc82b66fbf720824db62 /drivers/phy/phy-rockchip-emmc.c
parentphy: rockchip-dp: fix return value check in rockchip_dp_phy_probe() (diff)
downloadlinux-5cf700ac9d50353dc5b8194a57c6f40bf1fc4424.tar.xz
linux-5cf700ac9d50353dc5b8194a57c6f40bf1fc4424.zip
phy: phy-sun4i-usb: Fix optional gpios failing probe
The interrupt 0 is not a valid interrupt number. In the event where the retrieval of the vbus-det gpio would return null, the gpiod_to_irq callback would return 0, while the current code makes the assumption that it is a valid interrupt, and would go on calling request_irq. Obviously, this would fail, preventing the driver from probing properly, while the vbus and id gpios are optional. Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/phy/phy-rockchip-emmc.c')
0 files changed, 0 insertions, 0 deletions