Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Bus
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 Bus
Commits
5a032163
Commit
5a032163
authored
Jan 22, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport: kernel/*.c: portability hacks
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
7b3e5a1d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
3 deletions
+10
-3
fmc-chardev.c
kernel/fmc-chardev.c
+1
-0
fmc-core.c
kernel/fmc-core.c
+4
-3
fmc-dump.c
kernel/fmc-dump.c
+2
-0
fmc-fakedev.c
kernel/fmc-fakedev.c
+2
-0
fmc-write-eeprom.c
kernel/fmc-write-eeprom.c
+1
-0
No files found.
kernel/fmc-chardev.c
View file @
5a032163
...
...
@@ -16,6 +16,7 @@
#include <linux/spinlock.h>
#include <linux/fmc.h>
#include <asm/uaccess.h>
#include "for-2.6.24.h"
static
LIST_HEAD
(
fc_devices
);
static
DEFINE_SPINLOCK
(
fc_lock
);
...
...
kernel/fmc-core.c
View file @
5a032163
...
...
@@ -13,6 +13,7 @@
#include <linux/init.h>
#include <linux/device.h>
#include <linux/fmc.h>
#include "for-2.6.24.h"
static
int
fmc_check_version
(
unsigned
long
version
,
const
char
*
name
)
{
...
...
@@ -73,7 +74,7 @@ static void __fmc_release(struct device *dev){ }
/* This is needed as parent for our devices and dir in sysfs */
struct
device
fmc_bus
=
{
.
release
=
__fmc_release
,
.
init_name
=
"fmc"
,
/* We can't set init_name, becase 2.6.26 and earlier miss it */
};
/*
...
...
@@ -174,7 +175,7 @@ int fmc_device_register_n(struct fmc_device *fmcs, int n)
ret
=
device_add
(
&
fmc
->
dev
);
if
(
ret
<
0
)
{
dev_err
(
fmc
->
hwdev
,
"Failed in registering
\"
%s
\"\n
"
,
fmc
->
dev
.
kobj
.
name
);
dev_name
(
&
fmc
->
dev
)
);
fmc_free_id_info
(
fmc
);
goto
out
;
}
...
...
@@ -193,7 +194,6 @@ out:
kfree
(
fmcs
->
devarray
);
for
(
i
=
0
,
fmc
=
fmcs
;
i
<
n
;
i
++
,
fmc
++
)
fmc
->
devarray
=
NULL
;
fmc_free_id_info
(
fmc
);
return
ret
;
}
...
...
@@ -235,6 +235,7 @@ static int fmc_init(void)
{
int
err
;
dev_set_name
(
&
fmc_bus
,
"fmc"
);
err
=
device_register
(
&
fmc_bus
);
if
(
err
)
return
err
;
...
...
kernel/fmc-dump.c
View file @
5a032163
...
...
@@ -13,6 +13,8 @@
#include <linux/fmc.h>
#include <linux/fmc-sdb.h>
#include "for-2.6.24.h"
static
int
fmc_must_dump_eeprom
;
module_param_named
(
dump_eeprom
,
fmc_must_dump_eeprom
,
int
,
0644
);
static
int
fmc_must_dump_sdb
;
...
...
kernel/fmc-fakedev.c
View file @
5a032163
...
...
@@ -12,6 +12,8 @@
#include <linux/workqueue.h>
#include <linux/fmc.h>
#include "for-2.6.24.h"
static
char
*
ff_eeprom
;
module_param_named
(
eeprom
,
ff_eeprom
,
charp
,
0444
);
...
...
kernel/fmc-write-eeprom.c
View file @
5a032163
...
...
@@ -13,6 +13,7 @@
#include <linux/init.h>
#include <linux/fmc.h>
#include <asm/unaligned.h>
#include "for-2.6.24.h"
/*
* This module uses the firmware loader to program the whole or part
...
...
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