aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-floppy.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-05-09 18:01:09 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-05-09 18:01:09 -0400
commitecfd80e4a514123070b4cfb674b817ba75055df2 (patch)
tree956baa39e22030d139803b7585bd71e91c637bb5 /drivers/ide/ide-floppy.c
parent29e744d088e3555f4efbdf390f01088dd66993b6 (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-floppy.c')
-rw-r--r--drivers/ide/ide-floppy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c
index 57cd21c5b2c1..84d398f71e0f 100644
--- a/drivers/ide/ide-floppy.c
+++ b/drivers/ide/ide-floppy.c
@@ -1892,7 +1892,7 @@ static void ide_floppy_release(struct kref *kref)
1892 kfree(floppy); 1892 kfree(floppy);
1893} 1893}
1894 1894
1895#ifdef CONFIG_PROC_FS 1895#ifdef CONFIG_IDE_PROC_FS
1896 1896
1897static int proc_idefloppy_read_capacity 1897static int proc_idefloppy_read_capacity
1898 (char *page, char **start, off_t off, int count, int *eof, void *data) 1898 (char *page, char **start, off_t off, int count, int *eof, void *data)
@@ -1914,7 +1914,7 @@ static ide_proc_entry_t idefloppy_proc[] = {
1914 1914
1915#define idefloppy_proc NULL 1915#define idefloppy_proc NULL
1916 1916
1917#endif /* CONFIG_PROC_FS */ 1917#endif /* CONFIG_IDE_PROC_FS */
1918 1918
1919static int ide_floppy_probe(ide_drive_t *); 1919static int ide_floppy_probe(ide_drive_t *);
1920 1920