Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl>2004-06-04 23:01:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-04 23:01:06 -0700
commitb53259fa2ee8561e7904dea9cbd40e52a263b134 (patch)
tree7e83f925c7aba92aad664a2ea7b4d2d1c51b995f
parent8cf715b345651dac31ec7d6451d36bbe06807358 (diff)
[PATCH] ide: remove unused ide_remove_setting() from ide.c
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--drivers/ide/ide.c20
-rw-r--r--include/linux/ide.h1
2 files changed, 0 insertions, 21 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c
index a140efb2110b..307472fb996e 100644
--- a/drivers/ide/ide.c
+++ b/drivers/ide/ide.c
@@ -1092,26 +1092,6 @@ static void __ide_remove_setting (ide_drive_t *drive, char *name)
}
/**
- * ide_remove_setting - remove an ide setting option
- * @drive: drive to use
- * @name: setting name
- *
- * Removes the setting named from the device if it is present.
- * The function takes the settings_lock to protect against
- * parallel changes. This function must not be called from IRQ
- * context.
- */
-
-void ide_remove_setting (ide_drive_t *drive, char *name)
-{
- down(&ide_setting_sem);
- __ide_remove_setting(drive, name);
- up(&ide_setting_sem);
-}
-
-EXPORT_SYMBOL(ide_remove_setting);
-
-/**
* ide_find_setting_by_ioctl - find a drive specific ioctl
* @drive: drive to scan
* @cmd: ioctl command to handle
diff --git a/include/linux/ide.h b/include/linux/ide.h
index 25eedd92f090..aab7091972e2 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -1096,7 +1096,6 @@ typedef struct ide_settings_s {
extern struct semaphore ide_setting_sem;
extern int ide_add_setting(ide_drive_t *drive, const char *name, int rw, int read_ioctl, int write_ioctl, int data_type, int min, int max, int mul_factor, int div_factor, void *data, ide_procset_t *set);
-extern void ide_remove_setting(ide_drive_t *drive, char *name);
extern ide_settings_t *ide_find_setting_by_name(ide_drive_t *drive, char *name);
extern int ide_read_setting(ide_drive_t *t, ide_settings_t *setting);
extern int ide_write_setting(ide_drive_t *drive, ide_settings_t *setting, int val);