]> 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)
committerJiri Slaby <jslaby@suse.cz>
Wed, 7 Jan 2015 15:20:15 +0000 (16:20 +0100)
commit59cfe390359995687a6eeb0754cc1a3d1074181c
treeae40ef227d53ee59c5990ac01b29db04fc66dfd3
parentd7f79e0e3fe95a973e4047474c6c7bf3246b7a0f
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: Jiri Slaby <jslaby@suse.cz>
drivers/ata/sata_fsl.c