drm/msm/hdmi: Prevent gpio_free related kernel warnings
authorArchit Taneja <architt@codeaurora.org>
Mon, 2 May 2016 05:35:52 +0000 (11:05 +0530)
committerRob Clark <robdclark@gmail.com>
Sun, 8 May 2016 14:22:19 +0000 (10:22 -0400)
commitc899f9358485869a6e18902233eb77b31f0428ee
treebf405559b3f64ff045ffdc689282f2eb927d98b4
parent4816b6267cf078f40158ff2e6bf9d0223f0c1cf6
drm/msm/hdmi: Prevent gpio_free related kernel warnings

Calling the legacy gpio_free on an invalid GPIO (a GPIO numbered -1)
results in kernel warnings. This causes a lot of backtraces when
we try to unload the drm/msm module.

Call gpio_free only on valid GPIOs.

Signed-off-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/hdmi/hdmi_connector.c