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-disk.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-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 37aa6ddd9702..e7bc4d35c40c 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -559,7 +559,7 @@ static sector_t idedisk_capacity (ide_drive_t *drive) | |||
559 | return drive->capacity64 - drive->sect0; | 559 | return drive->capacity64 - drive->sect0; |
560 | } | 560 | } |
561 | 561 | ||
562 | #ifdef CONFIG_PROC_FS | 562 | #ifdef CONFIG_IDE_PROC_FS |
563 | 563 | ||
564 | static int smart_enable(ide_drive_t *drive) | 564 | static int smart_enable(ide_drive_t *drive) |
565 | { | 565 | { |
@@ -683,7 +683,7 @@ static ide_proc_entry_t idedisk_proc[] = { | |||
683 | 683 | ||
684 | #define idedisk_proc NULL | 684 | #define idedisk_proc NULL |
685 | 685 | ||
686 | #endif /* CONFIG_PROC_FS */ | 686 | #endif /* CONFIG_IDE_PROC_FS */ |
687 | 687 | ||
688 | static void idedisk_prepare_flush(request_queue_t *q, struct request *rq) | 688 | static void idedisk_prepare_flush(request_queue_t *q, struct request *rq) |
689 | { | 689 | { |