]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sata_fsl: fix error handling of irq_of_parse_and_map
authorDmitry Torokhov <dtor@chromium.org>
Fri, 14 Nov 2014 21:39:05 +0000 (13:39 -0800)
committerZefan Li <lizefan@huawei.com>
Tue, 14 Apr 2015 09:33:39 +0000 (17:33 +0800)
commit00646dbf051c999f3c19dccc585c135ab2bbc6c3
tree806f8915b36e39bc82a677a7bf80566f7233c8a7
parent1c84f5cc85de9ec44481d8113da636fcb21b6728
sata_fsl: fix error handling of irq_of_parse_and_map

commit aad0b624129709c94c2e19e583b6053520353fa8 upstream.

irq_of_parse_and_map() returns 0 on error (the result is unsigned int),
so testing for negative result never works.

Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
drivers/ata/sata_fsl.c