mirror of
https://github.com/torvalds/linux.git
synced 2024-12-19 09:32:32 +00:00
ata: pata_parport: remove device from struct pi_adapter
device is never set in pata_parport, remove it. Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru> Signed-off-by: Ondrej Zary <linux@zary.sk> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
This commit is contained in:
parent
ec6e7a51d9
commit
a4f2ff92ed
@ -124,8 +124,7 @@ static void aten_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
{ char *mode_string[2] = {"4-bit","8-bit"};
|
||||
|
||||
printk("%s: aten %s, ATEN EH-100 at 0x%x, ",
|
||||
pi->device,ATEN_VERSION,pi->port);
|
||||
printk("aten %s, ATEN EH-100 at 0x%x, ", ATEN_VERSION, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -335,8 +335,8 @@ static int bpck_test_proto( PIA *pi, char * scratch, int verbose )
|
||||
}
|
||||
|
||||
if (verbose) {
|
||||
printk("%s: bpck: 0x%x unit %d mode %d: ",
|
||||
pi->device,pi->port,pi->unit,pi->mode);
|
||||
printk("bpck: 0x%x unit %d mode %d: ",
|
||||
pi->port, pi->unit, pi->mode);
|
||||
for (i=0;i<TEST_LEN;i++) printk("%3d",buf[i]);
|
||||
printk("\n");
|
||||
}
|
||||
@ -432,13 +432,13 @@ static void bpck_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
for(i=0;i<128;i++)
|
||||
if ((scratch[i] < ' ') || (scratch[i] > '~'))
|
||||
scratch[i] = '.';
|
||||
printk("%s: bpck EEPROM: %64.64s\n",pi->device,scratch);
|
||||
printk("%s: %64.64s\n",pi->device,&scratch[64]);
|
||||
printk("bpck EEPROM: %64.64s\n", scratch);
|
||||
printk(" %64.64s\n", &scratch[64]);
|
||||
}
|
||||
#endif
|
||||
|
||||
printk("%s: bpck %s, backpack %8.8s unit %d",
|
||||
pi->device,BPCK_VERSION,&scratch[110],pi->unit);
|
||||
printk("bpck %s, backpack %8.8s unit %d",
|
||||
BPCK_VERSION, &scratch[110], pi->unit);
|
||||
printk(" at 0x%x, mode %d (%s), delay %d\n",pi->port,
|
||||
pi->mode,mode_string[pi->mode],pi->delay);
|
||||
}
|
||||
|
@ -200,11 +200,9 @@ static void bpck6_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
char *mode_string[5]=
|
||||
{"4-bit","8-bit","EPP-8","EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: BACKPACK Protocol Driver V"BACKPACK_VERSION"\n",pi->device);
|
||||
printk("%s: Copyright 2001 by Micro Solutions, Inc., DeKalb IL.\n",pi->device);
|
||||
printk("%s: BACKPACK %s, Micro Solutions BACKPACK Drive at 0x%x\n",
|
||||
pi->device,BACKPACK_VERSION,pi->port);
|
||||
printk("%s: Unit: %d Mode:%d (%s) Delay %d\n",pi->device,
|
||||
printk("BACKPACK %s, Micro Solutions BACKPACK Drive at 0x%x\n",
|
||||
BACKPACK_VERSION, pi->port);
|
||||
printk("Unit: %d Mode:%d (%s) Delay %d\n",
|
||||
pi->unit,pi->mode,mode_string[pi->mode],pi->delay);
|
||||
}
|
||||
|
||||
@ -217,7 +215,7 @@ static int bpck6_init_proto(PIA *pi)
|
||||
return 0;
|
||||
}
|
||||
|
||||
printk(KERN_ERR "%s: ERROR COULDN'T ALLOCATE MEMORY\n", pi->device);
|
||||
printk(KERN_ERR "ERROR COULDN'T ALLOCATE MEMORY\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -183,8 +183,7 @@ static void comm_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
{ char *mode_string[5] = {"4-bit","8-bit","EPP-8","EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: comm %s, DataStor Commuter at 0x%x, ",
|
||||
pi->device,COMM_VERSION,pi->port);
|
||||
printk("comm %s, DataStor Commuter at 0x%x, ", COMM_VERSION, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -195,8 +195,7 @@ static void dstr_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
{ char *mode_string[5] = {"4-bit","8-bit","EPP-8",
|
||||
"EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: dstr %s, DataStor EP2000 at 0x%x, ",
|
||||
pi->device,DSTR_VERSION,pi->port);
|
||||
printk("dstr %s, DataStor EP2000 at 0x%x, ", DSTR_VERSION, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -280,8 +280,8 @@ static int epat_test_proto( PIA *pi, char * scratch, int verbose )
|
||||
epat_disconnect(pi);
|
||||
|
||||
if (verbose) {
|
||||
printk("%s: epat: port 0x%x, mode %d, ccr %x, test=(%d,%d,%d)\n",
|
||||
pi->device,pi->port,pi->mode,cc,e[0],e[1],f);
|
||||
printk("epat: port 0x%x, mode %d, ccr %x, test=(%d,%d,%d)\n",
|
||||
pi->port, pi->mode, cc, e[0], e[1], f);
|
||||
}
|
||||
|
||||
return (e[0] && e[1]) || f;
|
||||
@ -298,8 +298,8 @@ static void epat_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
ver = RR(0xb);
|
||||
epat_disconnect(pi);
|
||||
|
||||
printk("%s: epat %s, Shuttle EPAT chip %x at 0x%x, ",
|
||||
pi->device,EPAT_VERSION,ver,pi->port);
|
||||
printk("epat %s, Shuttle EPAT chip %x at 0x%x, ",
|
||||
EPAT_VERSION, ver, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -263,8 +263,8 @@ static int epia_test_proto( PIA *pi, char * scratch, int verbose )
|
||||
epia_disconnect(pi);
|
||||
|
||||
if (verbose) {
|
||||
printk("%s: epia: port 0x%x, mode %d, test=(%d,%d,%d)\n",
|
||||
pi->device,pi->port,pi->mode,e[0],e[1],f);
|
||||
printk("epia: port 0x%x, mode %d, test=(%d,%d,%d)\n",
|
||||
pi->port, pi->mode, e[0], e[1], f);
|
||||
}
|
||||
|
||||
return (e[0] && e[1]) || f;
|
||||
@ -277,8 +277,7 @@ static void epia_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
{ char *mode_string[6] = {"4-bit","5/3","8-bit",
|
||||
"EPP-8","EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: epia %s, Shuttle EPIA at 0x%x, ",
|
||||
pi->device,EPIA_VERSION,pi->port);
|
||||
printk("epia %s, Shuttle EPIA at 0x%x, ", EPIA_VERSION, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -115,8 +115,9 @@ static void fit2_disconnect ( PIA *pi )
|
||||
|
||||
static void fit2_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
{ printk("%s: fit2 %s, FIT 2000 adapter at 0x%x, delay %d\n",
|
||||
pi->device,FIT2_VERSION,pi->port,pi->delay);
|
||||
{
|
||||
printk("fit2 %s, FIT 2000 adapter at 0x%x, delay %d\n",
|
||||
FIT2_VERSION, pi->port, pi->delay);
|
||||
|
||||
}
|
||||
|
||||
|
@ -173,9 +173,9 @@ static void fit3_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
{ char *mode_string[3] = {"4-bit","8-bit","EPP"};
|
||||
|
||||
printk("%s: fit3 %s, FIT 3000 adapter at 0x%x, "
|
||||
printk("fit3 %s, FIT 3000 adapter at 0x%x, "
|
||||
"mode %d (%s), delay %d\n",
|
||||
pi->device,FIT3_VERSION,pi->port,
|
||||
FIT3_VERSION, pi->port,
|
||||
pi->mode,mode_string[pi->mode],pi->delay);
|
||||
|
||||
}
|
||||
|
@ -208,8 +208,8 @@ static int friq_test_proto( PIA *pi, char * scratch, int verbose )
|
||||
friq_disconnect(pi);
|
||||
|
||||
if (verbose) {
|
||||
printk("%s: friq: port 0x%x, mode %d, test=(%d,%d,%d)\n",
|
||||
pi->device,pi->port,pi->mode,e[0],e[1],r);
|
||||
printk("friq: port 0x%x, mode %d, test=(%d,%d,%d)\n",
|
||||
pi->port, pi->mode, e[0], e[1], r);
|
||||
}
|
||||
|
||||
return (r || (e[0] && e[1]));
|
||||
@ -221,7 +221,7 @@ static void friq_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
{ char *mode_string[6] = {"4-bit","8-bit",
|
||||
"EPP-8","EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: friq %s, Freecom IQ ASIC-2 adapter at 0x%x, ", pi->device,
|
||||
printk("friq %s, Freecom IQ ASIC-2 adapter at 0x%x, ",
|
||||
FRIQ_VERSION,pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
@ -231,15 +231,13 @@ static int frpw_test_proto( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
if (((pi->private%2) == 0) && (pi->mode > 2)) {
|
||||
if (verbose)
|
||||
printk("%s: frpw: Xilinx does not support mode %d\n",
|
||||
pi->device, pi->mode);
|
||||
printk("frpw: Xilinx does not support mode %d\n", pi->mode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (((pi->private%2) == 1) && (pi->mode == 2)) {
|
||||
if (verbose)
|
||||
printk("%s: frpw: ASIC does not support mode 2\n",
|
||||
pi->device);
|
||||
printk("frpw: ASIC does not support mode 2\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@ -261,8 +259,8 @@ static int frpw_test_proto( PIA *pi, char * scratch, int verbose )
|
||||
frpw_disconnect(pi);
|
||||
|
||||
if (verbose) {
|
||||
printk("%s: frpw: port 0x%x, chip %ld, mode %d, test=(%d,%d,%d)\n",
|
||||
pi->device,pi->port,(pi->private%2),pi->mode,e[0],e[1],r);
|
||||
printk("frpw: port 0x%x, chip %ld, mode %d, test=(%d,%d,%d)\n",
|
||||
pi->port, (pi->private%2), pi->mode, e[0], e[1], r);
|
||||
}
|
||||
|
||||
return (r || (e[0] && e[1]));
|
||||
@ -274,7 +272,7 @@ static void frpw_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
{ char *mode_string[6] = {"4-bit","8-bit","EPP",
|
||||
"EPP-8","EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: frpw %s, Freecom (%s) adapter at 0x%x, ", pi->device,
|
||||
printk("frpw %s, Freecom (%s) adapter at 0x%x, ",
|
||||
FRPW_VERSION,((pi->private%2) == 0)?"Xilinx":"ASIC",pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
@ -235,8 +235,7 @@ static void kbic_log_adapter( PIA *pi, char * scratch,
|
||||
{ char *mode_string[6] = {"4-bit","5/3","8-bit",
|
||||
"EPP-8","EPP_16","EPP-32"};
|
||||
|
||||
printk("%s: kbic %s, KingByte %s at 0x%x, ",
|
||||
pi->device,KBIC_VERSION,chip,pi->port);
|
||||
printk("kbic %s, KingByte %s at 0x%x, ", KBIC_VERSION, chip, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -92,8 +92,9 @@ static void ktti_disconnect ( PIA *pi )
|
||||
|
||||
static void ktti_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
{ printk("%s: ktti %s, KT adapter at 0x%x, delay %d\n",
|
||||
pi->device,KTTI_VERSION,pi->port,pi->delay);
|
||||
{
|
||||
printk("ktti %s, KT adapter at 0x%x, delay %d\n",
|
||||
KTTI_VERSION, pi->port, pi->delay);
|
||||
|
||||
}
|
||||
|
||||
|
@ -115,8 +115,7 @@ static void on20_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
|
||||
{ char *mode_string[2] = {"4-bit","8-bit"};
|
||||
|
||||
printk("%s: on20 %s, OnSpec 90c20 at 0x%x, ",
|
||||
pi->device,ON20_VERSION,pi->port);
|
||||
printk("on20 %s, OnSpec 90c20 at 0x%x, ", ON20_VERSION, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -280,8 +280,7 @@ static void on26_log_adapter( PIA *pi, char * scratch, int verbose )
|
||||
{ char *mode_string[5] = {"4-bit","8-bit","EPP-8",
|
||||
"EPP-16","EPP-32"};
|
||||
|
||||
printk("%s: on26 %s, OnSpec 90c26 at 0x%x, ",
|
||||
pi->device,ON26_VERSION,pi->port);
|
||||
printk("on26 %s, OnSpec 90c26 at 0x%x, ", ON26_VERSION, pi->port);
|
||||
printk("mode %d (%s), delay %d\n",pi->mode,
|
||||
mode_string[pi->mode],pi->delay);
|
||||
|
||||
|
@ -17,7 +17,6 @@ struct pi_adapter {
|
||||
int port; /* base address of parallel port */
|
||||
int mode; /* transfer mode in use */
|
||||
int delay; /* adapter delay setting */
|
||||
char *device; /* dummy for paride protocol modules */
|
||||
int unit; /* unit number for chained adapters */
|
||||
int saved_r0; /* saved port state */
|
||||
int saved_r2; /* saved port state */
|
||||
|
Loading…
Reference in New Issue
Block a user