[PATCH] 2.2.21-pre[34] pl2303.c non-modular compile fix

From: Barry K. Nathan (barryn@pobox.com)
Date: Sat Mar 09 2002 - 08:19:10 EST


The pl2303 driver won't compile for me in Linux 2.2.21-pre3 or -pre4 if
modules are disabled. This might not be the right fix, but it allows the
driver to compile and work for me.

-Barry K. Nathan <barryn@pobox.com>

diff -ruN linux-2.2.21-pre3/drivers/usb/serial/pl2303.c linux-2.2.21-pre3-bknA-1/drivers/usb/serial/pl2303.c
--- linux-2.2.21-pre3/drivers/usb/serial/pl2303.c Sun Mar 3 23:20:11 2002
+++ linux-2.2.21-pre3-bknA-1/drivers/usb/serial/pl2303.c Sat Mar 9 04:45:08 2002
@@ -818,7 +818,9 @@
 module_exit(pl2303_exit);
 
 MODULE_DESCRIPTION(DRIVER_DESC);
+#ifdef CONFIG_MODULES
 MODULE_LICENSE("GPL");
+#endif
 
 MODULE_PARM(debug, "i");
 MODULE_PARM_DESC(debug, "Debug enabled or not");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 15 2002 - 22:00:12 EST