Commit b53259fa authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] ide: remove unused ide_remove_setting() from ide.c

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8cf715b3
...@@ -1091,26 +1091,6 @@ static void __ide_remove_setting (ide_drive_t *drive, char *name) ...@@ -1091,26 +1091,6 @@ static void __ide_remove_setting (ide_drive_t *drive, char *name)
kfree(setting); kfree(setting);
} }
/**
* 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 * ide_find_setting_by_ioctl - find a drive specific ioctl
* @drive: drive to scan * @drive: drive to scan
......
...@@ -1096,7 +1096,6 @@ typedef struct ide_settings_s { ...@@ -1096,7 +1096,6 @@ typedef struct ide_settings_s {
extern struct semaphore ide_setting_sem; 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 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 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_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); extern int ide_write_setting(ide_drive_t *drive, ide_settings_t *setting, int val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment