diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-09 18:01:09 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2007-05-09 18:01:09 -0400 |
commit | ecfd80e4a514123070b4cfb674b817ba75055df2 (patch) | |
tree | 956baa39e22030d139803b7585bd71e91c637bb5 /drivers/ide/ide-cd.c | |
parent | 29e744d088e3555f4efbdf390f01088dd66993b6 (diff) |
ide: make /proc/ide/ optional
All important information/features should be already available through
sysfs and ioctl interfaces.
Add CONFIG_IDE_PROC_FS (CONFIG_SCSI_PROC_FS rip-off) config option,
disabling it makes IDE driver ~5 kB smaller (on x86-32).
While at it add CONFIG_PROC_FS=n versions of proc_ide_{create,destroy}()
and remove no longer needed #ifdefs.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-cd.c')
-rw-r--r-- | drivers/ide/ide-cd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index 638becda81c6..c3a0079789fd 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c | |||
@@ -3274,7 +3274,7 @@ int ide_cdrom_setup (ide_drive_t *drive) | |||
3274 | return 0; | 3274 | return 0; |
3275 | } | 3275 | } |
3276 | 3276 | ||
3277 | #ifdef CONFIG_PROC_FS | 3277 | #ifdef CONFIG_IDE_PROC_FS |
3278 | static | 3278 | static |
3279 | sector_t ide_cdrom_capacity (ide_drive_t *drive) | 3279 | sector_t ide_cdrom_capacity (ide_drive_t *drive) |
3280 | { | 3280 | { |
@@ -3321,7 +3321,7 @@ static void ide_cd_release(struct kref *kref) | |||
3321 | 3321 | ||
3322 | static int ide_cd_probe(ide_drive_t *); | 3322 | static int ide_cd_probe(ide_drive_t *); |
3323 | 3323 | ||
3324 | #ifdef CONFIG_PROC_FS | 3324 | #ifdef CONFIG_IDE_PROC_FS |
3325 | static int proc_idecd_read_capacity | 3325 | static int proc_idecd_read_capacity |
3326 | (char *page, char **start, off_t off, int count, int *eof, void *data) | 3326 | (char *page, char **start, off_t off, int count, int *eof, void *data) |
3327 | { | 3327 | { |