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
nexedi
linux
Commits
60bac5c2
Commit
60bac5c2
authored
May 07, 2003
by
Hanna V. Linder
Committed by
Greg Kroah-Hartman
May 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] isdn/capi tty_driver add .owner field remove MOD_INC/DEC_USE_COUNT
parent
5fa62d1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
drivers/isdn/capi/capi.c
drivers/isdn/capi/capi.c
+1
-7
No files found.
drivers/isdn/capi/capi.c
View file @
60bac5c2
...
...
@@ -200,10 +200,8 @@ static struct capiminor *capiminor_alloc(struct capi20_appl *ap, u32 ncci)
unsigned
int
minor
=
0
;
unsigned
long
flags
;
MOD_INC_USE_COUNT
;
mp
=
kmalloc
(
sizeof
(
*
mp
),
GFP_ATOMIC
);
if
(
!
mp
)
{
MOD_DEC_USE_COUNT
;
printk
(
KERN_ERR
"capi: can't alloc capiminor
\n
"
);
return
0
;
}
...
...
@@ -249,7 +247,6 @@ static void capiminor_free(struct capiminor *mp)
skb_queue_purge
(
&
mp
->
outqueue
);
capiminor_del_all_ack
(
mp
);
kfree
(
mp
);
MOD_DEC_USE_COUNT
;
}
struct
capiminor
*
capiminor_find
(
unsigned
int
minor
)
...
...
@@ -1280,6 +1277,7 @@ static int capinc_tty_init(void)
memset
(
drv
,
0
,
sizeof
(
struct
tty_driver
));
drv
->
magic
=
TTY_DRIVER_MAGIC
;
drv
->
owner
=
THIS_MODULE
;
drv
->
driver_name
=
"capi_nc"
;
drv
->
name
=
"capi/"
;
drv
->
major
=
capi_ttymajor
;
...
...
@@ -1460,7 +1458,6 @@ static int __init capi_init(void)
char
*
p
;
char
*
compileinfo
;
MOD_INC_USE_COUNT
;
if
((
p
=
strchr
(
revision
,
':'
))
!=
0
&&
p
[
1
])
{
strncpy
(
rev
,
p
+
2
,
sizeof
(
rev
));
...
...
@@ -1472,7 +1469,6 @@ static int __init capi_init(void)
if
(
register_chrdev
(
capi_major
,
"capi20"
,
&
capi_fops
))
{
printk
(
KERN_ERR
"capi20: unable to get major %d
\n
"
,
capi_major
);
MOD_DEC_USE_COUNT
;
return
-
EIO
;
}
...
...
@@ -1484,7 +1480,6 @@ static int __init capi_init(void)
#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE
if
(
capinc_tty_init
()
<
0
)
{
unregister_chrdev
(
capi_major
,
"capi20"
);
MOD_DEC_USE_COUNT
;
return
-
ENOMEM
;
}
#endif
/* CONFIG_ISDN_CAPI_MIDDLEWARE */
...
...
@@ -1503,7 +1498,6 @@ static int __init capi_init(void)
printk
(
KERN_NOTICE
"capi20: Rev %s: started up with major %d%s
\n
"
,
rev
,
capi_major
,
compileinfo
);
MOD_DEC_USE_COUNT
;
return
0
;
}
...
...
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