Messages in this thread | | | Subject | Re: PATCH: Update for the serial driver. | Date | Wed, 1 Sep 1999 11:11:11 +0200 (MEST) | From | (Rogier Wolff) |
| |
tytso@mit.edu wrote:
+#if (LINUX_VERSION_CODE > 0x20100) serial_driver.driver_name = "serial"; +#endif serial_driver.name = "ttyS";
In this section I've used the trick:
#if (LINUX_VERSION_CODE > 0x20100) #define driver_name name #endif
out of the main code path. (I.e. near the top). That assigns the "name" variable twice, but as long as you do it before the actual assignment, it gets the ugly define out of the main path again.
This is getting a bit ugly, so you might decide to find the cure worse than the problem.
Roger.
-- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 ** *-- BitWizard writes Linux device drivers for any device you may have! --* ------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |