Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
ab746cb9
Commit
ab746cb9
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch z2ram
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
f3f68b36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
drivers/block/z2ram.c
drivers/block/z2ram.c
+5
-6
No files found.
drivers/block/z2ram.c
View file @
ab746cb9
...
...
@@ -137,8 +137,7 @@ get_chipram( void )
return
;
}
static
int
z2_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
z2_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
int
device
;
int
max_z2_map
=
(
Z2RAM_SIZE
/
Z2RAM_CHUNKSIZE
)
*
...
...
@@ -147,7 +146,7 @@ z2_open( struct inode *inode, struct file *filp )
sizeof
(
z2ram_map
[
0
]
);
int
rc
=
-
ENOMEM
;
device
=
iminor
(
inode
);
device
=
MINOR
(
bdev
->
bd_dev
);
if
(
current_device
!=
-
1
&&
current_device
!=
device
)
{
...
...
@@ -299,7 +298,7 @@ err_out:
}
static
int
z2_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
z2_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
if
(
current_device
==
-
1
)
return
0
;
...
...
@@ -314,8 +313,8 @@ z2_release( struct inode *inode, struct file *filp )
static
struct
block_device_operations
z2_fops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
z2_open
,
.
__
release
=
z2_release
,
.
open
=
z2_open
,
.
release
=
z2_release
,
};
static
struct
kobject
*
z2_find
(
dev_t
dev
,
int
*
part
,
void
*
data
)
...
...
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