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
0fb3e5fb
Commit
0fb3e5fb
authored
Sep 21, 2003
by
Chas Williams
Committed by
David S. Miller
Sep 21, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ATM]: [lanai] Get rid of MOD_INC/MOD_DEC (from shemminger@osdl.org).
parent
7ba6ce3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
drivers/atm/lanai.c
drivers/atm/lanai.c
+2
-3
No files found.
drivers/atm/lanai.c
View file @
0fb3e5fb
...
@@ -2242,7 +2242,6 @@ static int __init lanai_dev_open(struct atm_dev *atmdev)
...
@@ -2242,7 +2242,6 @@ static int __init lanai_dev_open(struct atm_dev *atmdev)
printk
(
KERN_ERR
DEV_LABEL
": can't allocate interrupt
\n
"
);
printk
(
KERN_ERR
DEV_LABEL
": can't allocate interrupt
\n
"
);
goto
error_vcctable
;
goto
error_vcctable
;
}
}
MOD_INC_USE_COUNT
;
/* At this point we can't fail */
mb
();
/* Make sure that all that made it */
mb
();
/* Make sure that all that made it */
intr_enable
(
lanai
,
INT_ALL
&
~
(
INT_PING
|
INT_WAKE
));
intr_enable
(
lanai
,
INT_ALL
&
~
(
INT_PING
|
INT_WAKE
));
/* 3.11: initialize loop mode (i.e. turn looping off) */
/* 3.11: initialize loop mode (i.e. turn looping off) */
...
@@ -2312,7 +2311,6 @@ static void lanai_dev_close(struct atm_dev *atmdev)
...
@@ -2312,7 +2311,6 @@ static void lanai_dev_close(struct atm_dev *atmdev)
service_buffer_deallocate
(
lanai
);
service_buffer_deallocate
(
lanai
);
iounmap
((
void
*
)
lanai
->
base
);
iounmap
((
void
*
)
lanai
->
base
);
kfree
(
lanai
);
kfree
(
lanai
);
MOD_DEC_USE_COUNT
;
}
}
/* close a vcc */
/* close a vcc */
...
@@ -2686,7 +2684,8 @@ static const struct atmdev_ops ops = {
...
@@ -2686,7 +2684,8 @@ static const struct atmdev_ops ops = {
.
phy_put
=
NULL
,
.
phy_put
=
NULL
,
.
phy_get
=
NULL
,
.
phy_get
=
NULL
,
.
change_qos
=
lanai_change_qos
,
.
change_qos
=
lanai_change_qos
,
.
proc_read
=
lanai_proc_read
.
proc_read
=
lanai_proc_read
,
.
owner
=
THIS_MODULE
};
};
/* initialize one probed card */
/* initialize one probed card */
...
...
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