Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC DEL 1ns 4cha - Software
Commits
d385e6f3
Commit
d385e6f3
authored
May 04, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: get carrier module to prevent rmmod
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
30de8355
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
fd-core.c
kernel/fd-core.c
+10
-0
No files found.
kernel/fd-core.c
View file @
d385e6f3
...
...
@@ -288,8 +288,14 @@ int fd_probe(struct fmc_device *fmc)
for
(
ch
=
1
;
ch
<=
FD_CH_NUMBER
;
ch
++
)
fd_gpio_set
(
fd
,
FD_GPIO_OUTPUT_EN
(
ch
));
/* Pin the carrier */
if
(
!
try_module_get
(
fmc
->
owner
))
goto
out_mod
;
return
0
;
out_mod:
fd_irq_exit
(
fd
);
err:
while
(
--
m
,
--
i
>=
0
)
if
(
m
->
exit
)
...
...
@@ -312,6 +318,10 @@ int fd_remove(struct fmc_device *fmc)
if
(
m
->
exit
)
m
->
exit
(
fd
);
}
/* Release the carrier */
module_put
(
fmc
->
owner
);
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