diff options
author | Andrzej Hajda <a.hajda@samsung.com> | 2017-02-22 14:47:37 +0300 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2017-02-23 19:06:11 +0300 |
commit | e0ba12ea5e1329bc25a774174ea0a102b7876f30 (patch) | |
tree | 76a6a4f6af459379bf2845d346d25ccafff63919 /drivers | |
parent | 54d82e0f2d5e64b2c4ed81785e7005f285ba42aa (diff) | |
download | linux-e0ba12ea5e1329bc25a774174ea0a102b7876f30.tar.xz |
drm/bridge/sii8620: add missing error handling in probe
devm_request_threaded_irq result should be checked for errors.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1487764057-23362-1-git-send-email-a.hajda@samsung.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/bridge/sil-sii8620.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/bridge/sil-sii8620.c b/drivers/gpu/drm/bridge/sil-sii8620.c index cdd0a9d44ba1..2d51a2269fc6 100644 --- a/drivers/gpu/drm/bridge/sil-sii8620.c +++ b/drivers/gpu/drm/bridge/sil-sii8620.c @@ -2184,6 +2184,10 @@ static int sii8620_probe(struct i2c_client *client, sii8620_irq_thread, IRQF_TRIGGER_HIGH | IRQF_ONESHOT, "sii8620", ctx); + if (ret < 0) { + dev_err(dev, "failed to install IRQ handler\n"); + return ret; + } ctx->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); if (IS_ERR(ctx->gpio_reset)) { |