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>
This commit is contained in:
@@ -559,7 +559,7 @@ static sector_t idedisk_capacity (ide_drive_t *drive)
|
||||
return drive->capacity64 - drive->sect0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PROC_FS
|
||||
#ifdef CONFIG_IDE_PROC_FS
|
||||
|
||||
static int smart_enable(ide_drive_t *drive)
|
||||
{
|
||||
@@ -683,7 +683,7 @@ static ide_proc_entry_t idedisk_proc[] = {
|
||||
|
||||
#define idedisk_proc NULL
|
||||
|
||||
#endif /* CONFIG_PROC_FS */
|
||||
#endif /* CONFIG_IDE_PROC_FS */
|
||||
|
||||
static void idedisk_prepare_flush(request_queue_t *q, struct request *rq)
|
||||
{
|
||||
|
Reference in New Issue
Block a user