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
8389feb4
Commit
8389feb4
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch gdrom
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
ab746cb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
drivers/cdrom/gdrom.c
drivers/cdrom/gdrom.c
+9
-10
No files found.
drivers/cdrom/gdrom.c
View file @
8389feb4
...
...
@@ -490,14 +490,14 @@ static struct cdrom_device_ops gdrom_ops = {
.
n_minors
=
1
,
};
static
int
gdrom_bdops_open
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
gdrom_bdops_open
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
return
cdrom_open
(
gd
.
cd_info
,
inode
->
i_bdev
,
file
->
f_
mode
);
return
cdrom_open
(
gd
.
cd_info
,
bdev
,
mode
);
}
static
int
gdrom_bdops_release
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
gdrom_bdops_release
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
return
cdrom_release
(
gd
.
cd_info
,
file
?
file
->
f_mode
:
0
);
return
cdrom_release
(
gd
.
cd_info
,
mode
);
}
static
int
gdrom_bdops_mediachanged
(
struct
gendisk
*
disk
)
...
...
@@ -505,19 +505,18 @@ static int gdrom_bdops_mediachanged(struct gendisk *disk)
return
cdrom_media_changed
(
gd
.
cd_info
);
}
static
int
gdrom_bdops_ioctl
(
struct
inode
*
inode
,
struct
file
*
fil
e
,
static
int
gdrom_bdops_ioctl
(
struct
block_device
*
bdev
,
fmode_t
mod
e
,
unsigned
cmd
,
unsigned
long
arg
)
{
return
cdrom_ioctl
(
gd
.
cd_info
,
inode
->
i_bdev
,
file
?
file
->
f_mode
:
0
,
cmd
,
arg
);
return
cdrom_ioctl
(
gd
.
cd_info
,
bdev
,
mode
,
cmd
,
arg
);
}
static
struct
block_device_operations
gdrom_bdops
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
gdrom_bdops_open
,
.
__
release
=
gdrom_bdops_release
,
.
open
=
gdrom_bdops_open
,
.
release
=
gdrom_bdops_release
,
.
media_changed
=
gdrom_bdops_mediachanged
,
.
__ioctl
=
gdrom_bdops_ioctl
,
.
locked_ioctl
=
gdrom_bdops_ioctl
,
};
static
irqreturn_t
gdrom_command_interrupt
(
int
irq
,
void
*
dev_id
)
...
...
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