Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC - 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
Simple VME FMC Carrier SVEC - Software
Commits
59fef9dc
Commit
59fef9dc
authored
Jan 23, 2013
by
Luis Fernando Ruiz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
svec: some debug output cleaning.
parent
591b3ec9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
8 deletions
+4
-8
svec-fmc.c
kernel/svec-fmc.c
+0
-4
svec-i2c.c
kernel/svec-i2c.c
+0
-1
svec_drv.c
kernel/svec_drv.c
+4
-3
No files found.
kernel/svec-fmc.c
View file @
59fef9dc
...
@@ -162,8 +162,6 @@ int svec_fmc_create(struct svec_dev *svec, unsigned int n)
...
@@ -162,8 +162,6 @@ int svec_fmc_create(struct svec_dev *svec, unsigned int n)
struct
fmc_device
*
fmc
=
svec
->
fmcs
+
n
;
struct
fmc_device
*
fmc
=
svec
->
fmcs
+
n
;
int
ret
=
0
;
int
ret
=
0
;
printk
(
KERN_ERR
"%s enters
\n
"
,
__func__
);
if
(
n
<
0
||
n
>
1
)
if
(
n
<
0
||
n
>
1
)
return
-
EINVAL
;
return
-
EINVAL
;
...
@@ -189,7 +187,5 @@ int svec_fmc_create(struct svec_dev *svec, unsigned int n)
...
@@ -189,7 +187,5 @@ int svec_fmc_create(struct svec_dev *svec, unsigned int n)
return
ret
;
return
ret
;
}
}
printk
(
KERN_ERR
"%s exits
\n
"
,
__func__
);
return
ret
;
return
ret
;
}
}
kernel/svec-i2c.c
View file @
59fef9dc
...
@@ -202,7 +202,6 @@ int svec_i2c_init(struct fmc_device *fmc, unsigned int slot)
...
@@ -202,7 +202,6 @@ int svec_i2c_init(struct fmc_device *fmc, unsigned int slot)
found
=
mi2c_scan
(
fmc
);
found
=
mi2c_scan
(
fmc
);
if
(
!
found
)
{
if
(
!
found
)
{
fmc
->
flags
|=
FMC_DEVICE_NO_MEZZANINE
;
fmc
->
flags
|=
FMC_DEVICE_NO_MEZZANINE
;
printk
(
KERN_ERR
"FMC_DEVICE_NO_MEZZANINE
\n
"
);
return
0
;
return
0
;
}
}
...
...
kernel/svec_drv.c
View file @
59fef9dc
...
@@ -507,20 +507,21 @@ static int __init svec_init(void)
...
@@ -507,20 +507,21 @@ static int __init svec_init(void)
/* Device creation for the carrier, just in case... */
/* Device creation for the carrier, just in case... */
error
=
alloc_chrdev_region
(
&
svec_devno
,
0
,
lun_num
,
"svec"
);
error
=
alloc_chrdev_region
(
&
svec_devno
,
0
,
lun_num
,
"svec"
);
if
(
error
)
{
if
(
error
)
{
pr
intk
(
KERN_ERR
PFX
"Failed to allocate chrdev region
\n
"
);
pr
_err
(
"%s: Failed to allocate chrdev region
\n
"
,
__func__
);
goto
out
;
goto
out
;
}
}
svec_class
=
class_create
(
THIS_MODULE
,
"svec"
);
svec_class
=
class_create
(
THIS_MODULE
,
"svec"
);
if
(
IS_ERR
(
svec_class
))
{
if
(
IS_ERR
(
svec_class
))
{
pr
intk
(
KERN_ERR
PFX
"Failed to create svec class
\n
"
);
pr
_err
(
"%s: Failed to create svec class
\n
"
,
__func__
);
error
=
PTR_ERR
(
svec_class
);
error
=
PTR_ERR
(
svec_class
);
goto
out
;
goto
out
;
}
}
error
=
vme_register_driver
(
&
svec_driver
,
lun_num
);
error
=
vme_register_driver
(
&
svec_driver
,
lun_num
);
if
(
error
)
{
if
(
error
)
{
printk
(
KERN_ERR
PFX
"Cannot register vme driver - lun [%d]
\n
"
,
lun_num
);
pr_err
(
"%s: Cannot register vme driver - lun [%d]
\n
"
,
__func__
,
lun_num
);
class_destroy
(
svec_class
);
class_destroy
(
svec_class
);
}
}
...
...
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