MIPS: lantiq: Change variables to the same type as the source
authorPetr Cvek <petrcvekcz@gmail.com>
Thu, 20 Jun 2019 21:39:34 +0000 (23:39 +0200)
committerPaul Burton <paul.burton@mips.com>
Mon, 24 Jun 2019 21:15:03 +0000 (14:15 -0700)
commit39588164d3c94c6519f0b826ecd05d7ee3da16c4
tree8e17c2b878fa9fd5391c4f504546c577c31245ba
parentaa0f58b4666f7662d178905ac45d94914f72d3d4
MIPS: lantiq: Change variables to the same type as the source

A structure irq_data, irq_desc_get_irq() and irq_linear_revmap() use
a different type than defined in the lantiq ICU driver, which is using
signed integers. The substracted result should never be negative nor is
tested for that situation. Change it to unsigned.

Signed-off-by: Petr Cvek <petrcvekcz@gmail.com>
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: hauke@hauke-m.de
Cc: john@phrozen.org
Cc: linux-mips@vger.kernel.org
Cc: openwrt-devel@lists.openwrt.org
Cc: pakahmar@hotmail.com
arch/mips/lantiq/irq.c