Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 93587
b: refs/heads/master
c: 1134b6f
h: refs/heads/master
i:
  93585: e9496f0
  93583: 43c5f77
v: v3
  • Loading branch information
Borislav Petkov authored and Bartlomiej Zolnierkiewicz committed Apr 26, 2008
1 parent b4efc71 commit 92e00be
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 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: 177773ed87586214c423ef1204b42d35f0ec8f81
refs/heads/master: 1134b6fec57de7de2c56485bcd2afd9c16295dcb
23 changes: 10 additions & 13 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1898,19 +1898,6 @@ int ide_cdrom_setup(ide_drive_t *drive)
return 0;
}

#ifdef CONFIG_IDE_PROC_FS
static
sector_t ide_cdrom_capacity(ide_drive_t *drive)
{
unsigned long capacity, sectors_per_frame;

if (cdrom_read_capacity(drive, &capacity, &sectors_per_frame, NULL))
return 0;

return capacity * sectors_per_frame;
}
#endif

static void ide_cd_remove(ide_drive_t *drive)
{
struct cdrom_info *info = drive->driver_data;
Expand Down Expand Up @@ -1943,6 +1930,16 @@ static void ide_cd_release(struct kref *kref)
static int ide_cd_probe(ide_drive_t *);

#ifdef CONFIG_IDE_PROC_FS
static sector_t ide_cdrom_capacity(ide_drive_t *drive)
{
unsigned long capacity, sectors_per_frame;

if (cdrom_read_capacity(drive, &capacity, &sectors_per_frame, NULL))
return 0;

return capacity * sectors_per_frame;
}

static int proc_idecd_read_capacity
(char *page, char **start, off_t off, int count, int *eof, void *data)
{
Expand Down

0 comments on commit 92e00be

Please sign in to comment.