linux-xiaomi-chiron/drivers/staging/most
Gustavo A. R. Silva a8e95f8a34 staging: most: hdm-dim2: fix error return code in dim2_probe()
platform_get_irq() returns an error code, but the dim2_hdm driver
ignores it and always returns -ENODEV. This is not correct and,
prevents -EPROBE_DEFER from being propagated properly.

Also, notice that platform_get_irq() no longer returns 0 on error:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e330b9a6bb35dc7097a4f02cb1ae7b6f96df92af

Print and propagate the return value of platform_get_irq on failure.

This issue was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-08-18 15:57:17 -07:00
..
aim-cdev staging: most: destroy cdev when channel gets disconnected 2017-04-08 12:41:39 +02:00
aim-network Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2017-07-05 12:31:59 -07:00
aim-sound staging: most: aim-sound style fixess 2017-04-25 20:56:15 +02:00
aim-v4l2 Staging: most: aim-v4l2: constify v4l2_file_operations structures 2016-09-27 13:06:55 +02:00
Documentation staging: most: Documentation: update ABI description 2016-09-12 09:47:15 +02:00
hdm-dim2 staging: most: hdm-dim2: fix error return code in dim2_probe() 2017-08-18 15:57:17 -07:00
hdm-i2c staging: most: i2c: remove empty callback request_netinfo 2017-05-15 11:59:09 +02:00
hdm-usb staging: most: usb: constify usb_device_id 2017-08-18 15:57:16 -07:00
mostcore staging: most: remove dependency on networking-aim 2017-05-15 11:59:09 +02:00
Kconfig Staging: most: MOST and MOSTCORE should depend on HAS_DMA 2015-09-13 09:24:44 -07:00
Makefile Staging: most: add MOST driver's hdm-usb module 2015-07-24 13:50:43 -07:00
TODO Staging: most: add MOST driver's core module 2015-07-24 13:47:32 -07:00