Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 ADC 100M 14b 4cha - Software
Commits
907b342a
Commit
907b342a
authored
Apr 30, 2013
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fa-core.c: use FMC_PARAM_BUSID() in the ADC driver
Signed-off-by:
Federico Vaga
<
federico.vaga@gmail.com
>
parent
70ed4d5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
fa-core.c
kernel/fa-core.c
+10
-0
No files found.
kernel/fa-core.c
View file @
907b342a
...
...
@@ -16,6 +16,8 @@
#include "fmc-adc.h"
static
struct
fmc_driver
fa_dev_drv
;
FMC_PARAM_BUSID
(
fa_dev_drv
);
static
char
*
fa_binaries
=
FA_GATEWARE_DEFAULT_NAME
;
module_param_named
(
file
,
fa_binaries
,
charp
,
0444
);
...
...
@@ -39,6 +41,14 @@ int fa_probe(struct fmc_device *fmc)
struct
fa_dev
*
fa
;
int
err
,
i
=
0
;
/* Validate the new FMC device */
i
=
fmc
->
op
->
validate
(
fmc
,
&
fa_dev_drv
);
if
(
i
<
0
)
{
dev_info
(
fmc
->
hwdev
,
"not using
\"
%s
\"
according to "
"modparam
\n
"
,
KBUILD_MODNAME
);
return
-
ENODEV
;
}
pr_info
(
"%s:%d
\n
"
,
__func__
,
__LINE__
);
/* Driver data */
fa
=
devm_kzalloc
(
&
fmc
->
dev
,
sizeof
(
struct
fa_dev
),
GFP_KERNEL
);
...
...
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