Commit e0502b03 authored by Marcel Holtmann's avatar Marcel Holtmann

[PATCH] Make it possible to compile in the Bluetooth subsystem

..and minor() cleanups
parent 0bf36f29
...@@ -356,11 +356,9 @@ static void __exit bluez_cleanup(void) ...@@ -356,11 +356,9 @@ static void __exit bluez_cleanup(void)
remove_proc_entry("bluetooth", NULL); remove_proc_entry("bluetooth", NULL);
} }
#ifdef MODULE
module_init(bluez_init); module_init(bluez_init);
module_exit(bluez_cleanup); module_exit(bluez_cleanup);
MODULE_AUTHOR("Maxim Krasnyansky <maxk@qualcomm.com>"); MODULE_AUTHOR("Maxim Krasnyansky <maxk@qualcomm.com>");
MODULE_DESCRIPTION("BlueZ Core ver " VERSION); MODULE_DESCRIPTION("BlueZ Core ver " VERSION);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
#endif
...@@ -501,12 +501,6 @@ static void rfcomm_tty_wakeup(unsigned long arg) ...@@ -501,12 +501,6 @@ static void rfcomm_tty_wakeup(unsigned long arg)
#endif #endif
} }
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 5, 0)
#define __minor MINOR
#else
#define __minor minor
#endif
static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp)
{ {
DECLARE_WAITQUEUE(wait, current); DECLARE_WAITQUEUE(wait, current);
...@@ -514,7 +508,7 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp) ...@@ -514,7 +508,7 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp)
struct rfcomm_dlc *dlc; struct rfcomm_dlc *dlc;
int err, id; int err, id;
id = __minor(tty->device) - tty->driver.minor_start; id = minor(tty->device) - tty->driver.minor_start;
BT_DBG("tty %p id %d", tty, id); BT_DBG("tty %p id %d", tty, id);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment