Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b564f027
Commit
b564f027
authored
Mar 02, 2008
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] switch DAC960
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
a625c998
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/block/DAC960.c
drivers/block/DAC960.c
+4
-4
No files found.
drivers/block/DAC960.c
View file @
b564f027
...
...
@@ -72,9 +72,9 @@ static long disk_size(DAC960_Controller_T *p, int drive_nr)
}
}
static
int
DAC960_open
(
struct
inode
*
inode
,
struct
file
*
fil
e
)
static
int
DAC960_open
(
struct
block_device
*
bdev
,
fmode_t
mod
e
)
{
struct
gendisk
*
disk
=
inode
->
i_
bdev
->
bd_disk
;
struct
gendisk
*
disk
=
bdev
->
bd_disk
;
DAC960_Controller_T
*
p
=
disk
->
queue
->
queuedata
;
int
drive_nr
=
(
long
)
disk
->
private_data
;
...
...
@@ -89,7 +89,7 @@ static int DAC960_open(struct inode *inode, struct file *file)
return
-
ENXIO
;
}
check_disk_change
(
inode
->
i_
bdev
);
check_disk_change
(
bdev
);
if
(
!
get_capacity
(
p
->
disks
[
drive_nr
]))
return
-
ENXIO
;
...
...
@@ -153,7 +153,7 @@ static int DAC960_revalidate_disk(struct gendisk *disk)
static
struct
block_device_operations
DAC960_BlockDeviceOperations
=
{
.
owner
=
THIS_MODULE
,
.
__
open
=
DAC960_open
,
.
open
=
DAC960_open
,
.
getgeo
=
DAC960_getgeo
,
.
media_changed
=
DAC960_media_changed
,
.
revalidate_disk
=
DAC960_revalidate_disk
,
...
...
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