Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117507
b: refs/heads/master
c: b564f02
h: refs/heads/master
i:
  117505: 7722403
  117503: 5c62248
v: v3
  • Loading branch information
Al Viro committed Oct 21, 2008
1 parent c31fad0 commit 3b7b761
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a625c998e638c5648600828ca1cc282d97c7ebfd
refs/heads/master: b564f027ad90ab11ed668984af3ae9e0a0f27359
8 changes: 4 additions & 4 deletions trunk/drivers/block/DAC960.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ static long disk_size(DAC960_Controller_T *p, int drive_nr)
}
}

static int DAC960_open(struct inode *inode, struct file *file)
static int DAC960_open(struct block_device *bdev, fmode_t mode)
{
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;

Expand All @@ -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;
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 3b7b761

Please sign in to comment.