compat: add tty_port_register_device
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 18 Aug 2012 11:46:54 +0000 (13:46 +0200)
committerLuis R. Rodriguez <mcgrof@do-not-panic.com>
Mon, 20 Aug 2012 05:43:16 +0000 (09:43 +0400)
tty_register_device was replaced by tty_port_register_device in this
commit:
commit 734cc1783816ae358cef45673a29bf7af974e147
Author: Jiri Slaby <jslaby@suse.cz>
Date:   Tue Aug 7 21:47:47 2012 +0200

    TTY: use tty_port_register_device

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@do-not-panic.com>
include/linux/compat-3.7.h

index 9271c2e92ce4d477aa02e49901e477631f522cdf..22a7f9f6fb2868c710c5a643f7ae613dd53b06a9 100644 (file)
@@ -15,6 +15,9 @@ bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
 #define tty_lock(__tty) tty_lock()
 #define tty_unlock(__tty) tty_unlock()
 
+#define tty_port_register_device(port, driver, index, device) \
+       tty_register_device(driver, index, device)
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) */
 
 #endif /* LINUX_3_7_COMPAT_H */