Subject: linux-next: ide/m68k build failure

From: Stephen Rothwell <[email-masked]>
Date: Tue, 8 Jul 2008 22:55:55 +1000

Hi Bart,

Today's linux-next build (m68k defconfig) failed like this:

drivers/ide/legacy/falconide.c:120: error: 'NODEV' undeclared (first use in this function)

Caused by commit 6c99c52c52e6a1532b502df89a6cffe19626d295 ("ide: add
ide_host_free() helper").

Signed-off-by: Stephen Rothwell <[email-masked]>

diff --git a/drivers/ide/legacy/falconide.c b/drivers/ide/legacy/falconide.c
index f8394cc..724f950 100644
--- a/drivers/ide/legacy/falconide.c
+++ b/drivers/ide/legacy/falconide.c
@@ -117,7 +117,7 @@ static int __init falconide_init(void)
 	int rc;
 
 	if (!MACH_IS_ATARI || !ATARIHW_PRESENT(IDE))
-		return -NODEV;
+		return -ENODEV;
 
 	printk(KERN_INFO "ide: Falcon IDE controller\n");

-- 
Cheers,
Stephen Rothwell                    [email-masked]
http://www.canb.auug.org.au/~sfr/

P.S. untested but pretty obvious.