Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
e0502b03
Commit
e0502b03
authored
Oct 07, 2002
by
Marcel Holtmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Make it possible to compile in the Bluetooth subsystem
..and minor() cleanups
parent
0bf36f29
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
9 deletions
+1
-9
net/bluetooth/af_bluetooth.c
net/bluetooth/af_bluetooth.c
+0
-2
net/bluetooth/rfcomm/tty.c
net/bluetooth/rfcomm/tty.c
+1
-7
No files found.
net/bluetooth/af_bluetooth.c
View file @
e0502b03
...
@@ -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
net/bluetooth/rfcomm/tty.c
View file @
e0502b03
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment