Re: Blackfin Serial Driver: Enable IR function when userapplication (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with linediscipline N_IRDA

From: Alan Cox
Date: Thu Apr 24 2008 - 17:18:36 EST


O> Blackfin Serial Driver: Enable IR function when user application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line discipline N_IRDA

> if (ret == 0) {
> + bfin_serial_reg.tty_driver->set_ldisc = bfin_set_ldisc;
> ret = platform_driver_register(&bfin_serial_driver);

This will not work when combined with the tty patches as they move the
tty driver operations out of the tty driver and also make them shared and
const. You need to declare two sets of tty_ops and register the correct
one for your device.

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/