ARM: OMAP2+: omap_device: fix error return code in omap_device_copy_resources()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 13 Oct 2017 09:29:25 +0000 (09:29 +0000)
committerTony Lindgren <tony@atomide.com>
Fri, 13 Oct 2017 17:07:40 +0000 (10:07 -0700)
commit552ee3021cd79feb4203df1d594533fa9c8e1595
treee3db0719751af4e850c99ee5e617b5e181b15d3a
parent9cffb1a0504ddc7b291cf882002ee4a794eb3fec
ARM: OMAP2+: omap_device: fix error return code in omap_device_copy_resources()

Fix to return error code -EINVAL from the irq_of_parse_and_map() error
handling case instead of 0, as done elsewhere in this function.

Fixes: d85a2d61432a ("ARM: OMAP2+: Populate legacy resources for dma
and smartreflex")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap_device.c