I've googled a lot about this compiling error.
There was a patch exists:
+struct device *tty_get_device(struct tty_struct *tty)
+{
+ dev_t devt = tty_devnum(tty);
+ return class_find_device(tty_class, NULL, &devt, dev_match_devt);
+}
+struct device *tty_get_device(struct tty_struct *tty);
http://www.mentby.com/dmitry-eremin-...ttystruct.html
But I haven't chance to patch and recompile the kernel.
Is there any solution without patch and recompiling the kernel?
Is it possible to retrieve device struct only using the tty_devnum?
Thanks for response.
Thanks in advance.