[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080424215004.34517136@the-village.bc.nu>
Date: Thu, 24 Apr 2008 21:50:04 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Cc: graf.yang@...log.com
Subject: Re: Blackfin Serial Driver: Enable IR function when user
application (irattach /dev/ttyBFx -s) call TIOCSETD ioctl with line
discipline N_IRDA
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists