mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
[ARM] am79c961a: platform_get_irq() may return signed unnoticed
dev->irq is unsigned, platform_get_irq() may return signed unnoticed Signed-off-by: Roel Kluin <12o3l@tiscali.nl> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
26eed9a5c6
commit
6278367954
@ -693,11 +693,15 @@ static int __init am79c961_probe(struct platform_device *pdev)
|
|||||||
* done by the ether bootp loader.
|
* done by the ether bootp loader.
|
||||||
*/
|
*/
|
||||||
dev->base_addr = res->start;
|
dev->base_addr = res->start;
|
||||||
dev->irq = platform_get_irq(pdev, 0);
|
ret = platform_get_irq(pdev, 0);
|
||||||
|
|
||||||
|
if (ret < 0) {
|
||||||
|
ret = -ENODEV;
|
||||||
|
goto nodev;
|
||||||
|
}
|
||||||
|
dev->irq = ret;
|
||||||
|
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
if (dev->irq < 0)
|
|
||||||
goto nodev;
|
|
||||||
if (!request_region(dev->base_addr, 0x18, dev->name))
|
if (!request_region(dev->base_addr, 0x18, dev->name))
|
||||||
goto nodev;
|
goto nodev;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user