Commit 98b54792 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Greg Kroah-Hartman

[PATCH] remove dead "hdXlun=" kernel parameter

parent 54cdbb65
...@@ -249,8 +249,6 @@ Summary of ide driver parameters for kernel command line ...@@ -249,8 +249,6 @@ Summary of ide driver parameters for kernel command line
"hdx=scsi" : the return of the ide-scsi flag, this is useful for "hdx=scsi" : the return of the ide-scsi flag, this is useful for
allowing ide-floppy, ide-tape, and ide-cdrom|writers allowing ide-floppy, ide-tape, and ide-cdrom|writers
to use ide-scsi emulation on a device specific option. to use ide-scsi emulation on a device specific option.
"hdxlun=xx" : set the drive last logical unit
"idebus=xx" : inform IDE driver of VESA/PCI bus speed in MHz, "idebus=xx" : inform IDE driver of VESA/PCI bus speed in MHz,
where "xx" is between 20 and 66 inclusive, where "xx" is between 20 and 66 inclusive,
......
...@@ -138,9 +138,6 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd) ...@@ -138,9 +138,6 @@ static inline void do_identify (ide_drive_t *drive, u8 cmd)
local_irq_enable(); local_irq_enable();
ide_fix_driveid(id); ide_fix_driveid(id);
if (!drive->forced_lun)
drive->last_lun = id->last_lun & 0x7;
#if defined (CONFIG_SCSI_EATA_DMA) || defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA) #if defined (CONFIG_SCSI_EATA_DMA) || defined (CONFIG_SCSI_EATA_PIO) || defined (CONFIG_SCSI_EATA)
/* /*
* EATA SCSI controllers do a hardware ATA emulation: * EATA SCSI controllers do a hardware ATA emulation:
......
...@@ -1798,9 +1798,7 @@ int __init ide_setup (char *s) ...@@ -1798,9 +1798,7 @@ int __init ide_setup (char *s)
if (strncmp(s,"hd",2) == 0 && s[2] == '=') /* hd= is for hd.c */ if (strncmp(s,"hd",2) == 0 && s[2] == '=') /* hd= is for hd.c */
return 0; /* driver and not us */ return 0; /* driver and not us */
if (strncmp(s,"ide",3) && if (strncmp(s,"ide",3) && strncmp(s,"idebus",6) && strncmp(s,"hd",2))
strncmp(s,"idebus",6) &&
strncmp(s,"hd",2)) /* hdx= & hdxlun= */
return 0; return 0;
printk(KERN_INFO "ide_setup: %s", s); printk(KERN_INFO "ide_setup: %s", s);
...@@ -1847,19 +1845,6 @@ int __init ide_setup (char *s) ...@@ -1847,19 +1845,6 @@ int __init ide_setup (char *s)
strlcpy(drive->driver_req, s + 4, sizeof(drive->driver_req)); strlcpy(drive->driver_req, s + 4, sizeof(drive->driver_req));
goto done; goto done;
} }
/*
* Look for last lun option: "hdxlun="
*/
if (s[3] == 'l' && s[4] == 'u' && s[5] == 'n') {
if (match_parm(&s[6], NULL, vals, 1) != 1)
goto bad_option;
if (vals[0] >= 0 && vals[0] <= 7) {
drive->last_lun = vals[0];
drive->forced_lun = 1;
} else
printk(" -- BAD LAST LUN! Expected value from 0 to 7");
goto done;
}
switch (match_parm(&s[3], hd_words, vals, 3)) { switch (match_parm(&s[3], hd_words, vals, 3)) {
case -1: /* "none" */ case -1: /* "none" */
case -2: /* "noprobe" */ case -2: /* "noprobe" */
......
...@@ -742,8 +742,6 @@ typedef struct ide_drive_s { ...@@ -742,8 +742,6 @@ typedef struct ide_drive_s {
u64 capacity64; /* total number of sectors */ u64 capacity64; /* total number of sectors */
int last_lun; /* last logical unit */
int forced_lun; /* if hdxlun was given at boot */
int lun; /* logical unit */ int lun; /* logical unit */
int crc_count; /* crc counter to reduce drive speed */ int crc_count; /* crc counter to reduce drive speed */
struct list_head list; struct list_head list;
......
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