diff -urN linux-2.4.22-pre10-ac1/lib/firmware_class.c linux-2.4.22-pre10-ac1-reqfrm-hotplug/lib/firmware_class.c --- linux-2.4.22-pre10-ac1/lib/firmware_class.c Sat Aug 2 10:50:04 2003 +++ linux-2.4.22-pre10-ac1-reqfrm-hotplug/lib/firmware_class.c Sat Aug 2 11:21:02 2003 @@ -67,6 +67,8 @@ static struct proc_dir_entry *proc_dir_timeout; static struct proc_dir_entry *proc_dir; +#ifdef CONFIG_HOTPLUG + static int call_helper(char *verb, const char *name, const char *device) { @@ -126,7 +128,9 @@ envp[i++] = 0; +#ifdef DEBUG dbg("firmware: %s %s %s", argv[0], argv[1], verb); +#endif retval = call_usermodehelper(argv[0], argv, envp); if (retval) { @@ -137,6 +141,15 @@ kfree(envp); return retval; } +#else + +static inline int +call_helper(char *verb, const char *name, const char *device) +{ + return -ENOENT; +} + +#endif /* CONFIG_HOTPLUG */ struct firmware_priv { struct completion completion;