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
5d9a54b6
Commit
5d9a54b6
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch memstick
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a39907fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
drivers/memstick/core/mspro_block.c
drivers/memstick/core/mspro_block.c
+6
-7
No files found.
drivers/memstick/core/mspro_block.c
View file @
5d9a54b6
...
...
@@ -172,9 +172,9 @@ static int mspro_block_complete_req(struct memstick_dev *card, int error);
/*** Block device ***/
static
int
mspro_block_bd_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
mspro_block_bd_open
(
struct
block_device
*
bdev
,
fmode_t
mode
)
{
struct
gendisk
*
disk
=
inode
->
i_
bdev
->
bd_disk
;
struct
gendisk
*
disk
=
bdev
->
bd_disk
;
struct
mspro_block_data
*
msb
=
disk
->
private_data
;
int
rc
=
-
ENXIO
;
...
...
@@ -182,7 +182,7 @@ static int mspro_block_bd_open(struct inode *inode, struct file *filp)
if
(
msb
&&
msb
->
card
)
{
msb
->
usage_count
++
;
if
((
filp
->
f_
mode
&
FMODE_WRITE
)
&&
msb
->
read_only
)
if
((
mode
&
FMODE_WRITE
)
&&
msb
->
read_only
)
rc
=
-
EROFS
;
else
rc
=
0
;
...
...
@@ -218,9 +218,8 @@ static int mspro_block_disk_release(struct gendisk *disk)
return
0
;
}
static
int
mspro_block_bd_release
(
struct
inode
*
inode
,
struct
file
*
filp
)
static
int
mspro_block_bd_release
(
struct
gendisk
*
disk
,
fmode_t
mode
)
{
struct
gendisk
*
disk
=
inode
->
i_bdev
->
bd_disk
;
return
mspro_block_disk_release
(
disk
);
}
...
...
@@ -237,8 +236,8 @@ static int mspro_block_bd_getgeo(struct block_device *bdev,
}
static
struct
block_device_operations
ms_block_bdops
=
{
.
__
open
=
mspro_block_bd_open
,
.
__
release
=
mspro_block_bd_release
,
.
open
=
mspro_block_bd_open
,
.
release
=
mspro_block_bd_release
,
.
getgeo
=
mspro_block_bd_getgeo
,
.
owner
=
THIS_MODULE
};
...
...
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