Commit efec194f576eebca8b0b3ac6e96fea05ae4567c9
Committed by
Krzysztof Hałasa
1 parent
9f2c94928a
Exists in
master
and in
4 other branches
IXP4xx: Ensure index is positive in irq_to_gpio() and npe_request().
The indexes were signed, so negatives were possible. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Showing 4 changed files with 4 additions and 4 deletions Side-by-side Diff
arch/arm/mach-ixp4xx/common.c
arch/arm/mach-ixp4xx/include/mach/gpio.h
arch/arm/mach-ixp4xx/include/mach/npe.h
... | ... | @@ -33,7 +33,7 @@ |
33 | 33 | int npe_recv_message(struct npe *npe, void *msg, const char *what); |
34 | 34 | int npe_send_recv_message(struct npe *npe, void *msg, const char *what); |
35 | 35 | int npe_load_firmware(struct npe *npe, const char *name, struct device *dev); |
36 | -struct npe *npe_request(int id); | |
36 | +struct npe *npe_request(unsigned id); | |
37 | 37 | void npe_release(struct npe *npe); |
38 | 38 | |
39 | 39 | #endif /* __IXP4XX_NPE_H */ |