Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

libata: samsung_cf: fix handling platform_get_irq result

The function can return negative value.

The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].

[1]: http://permalink.gmane.org/gmane.linux.kernel/2046107

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

authored by

Andrzej Hajda and committed by
Tejun Heo
a73f22f9 88622d80

+1 -1
+1 -1
drivers/ata/pata_samsung_cf.c
··· 70 70 struct clk *clk; 71 71 void __iomem *ide_addr; 72 72 void __iomem *sfr_addr; 73 - unsigned int irq; 73 + int irq; 74 74 enum s3c_cpu_type cpu_type; 75 75 unsigned int fifo_status_reg; 76 76 };