diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-01-31 16:05:45 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-31 16:05:45 -0500 |
commit | 706b7e1573d7b7ad7825e84a6dcfb3d533993b83 (patch) | |
tree | ce3df2f3cf6dfad0b8c8b5aac58a242979b20d51 /arch/x86/kernel | |
parent | 1fd6a53ddc75d02ad0f363cb42f2a1cec6b701c2 (diff) |
x86: fix sparse warning in kernel/scx200_32.c
arch/x86/kernel/scx200_32.c:68:72: warning: Using plain integer as NULL pointer
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/scx200_32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/scx200_32.c b/arch/x86/kernel/scx200_32.c index 87bc159d29df..7e004acbe526 100644 --- a/arch/x86/kernel/scx200_32.c +++ b/arch/x86/kernel/scx200_32.c | |||
@@ -65,7 +65,7 @@ static int __devinit scx200_probe(struct pci_dev *pdev, const struct pci_device_ | |||
65 | base = pci_resource_start(pdev, 0); | 65 | base = pci_resource_start(pdev, 0); |
66 | printk(KERN_INFO NAME ": GPIO base 0x%x\n", base); | 66 | printk(KERN_INFO NAME ": GPIO base 0x%x\n", base); |
67 | 67 | ||
68 | if (request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO") == 0) { | 68 | if (!request_region(base, SCx200_GPIO_SIZE, "NatSemi SCx200 GPIO")) { |
69 | printk(KERN_ERR NAME ": can't allocate I/O for GPIOs\n"); | 69 | printk(KERN_ERR NAME ": can't allocate I/O for GPIOs\n"); |
70 | return -EBUSY; | 70 | return -EBUSY; |
71 | } | 71 | } |