Re: [PATCH 2.6.26-rc5 1/2] cris: compile fixes for 2.6.26-rc5

From: Alan Cox
Date: Fri Jun 06 2008 - 07:57:44 EST


> +static struct tty_operations dummy_ops = {
> + .open = &dummy_open,
> + .close = &dummy_close,
> + .write = &dummy_write,
> + .write_room = &dummy_write_room,
> +};

Looks ok. From 2.6.26 onward you should be able to omit write/write_room
if you want writes to error, but you will need the dummies if you want
them to vanish.

> @@ -448,10 +455,7 @@ init_dummy_console(void)
> B115200 | CS8 | CREAD | HUPCL | CLOCAL; /* is normally B9600 default... */

It should also be setting c_ispeed/c_ospeed

> dummy_driver.flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_DYNAMIC_DEV;

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/