aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/pata_rdc/pata_rdc.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/staging/pata_rdc/pata_rdc.c b/drivers/staging/pata_rdc/pata_rdc.c
index 257e622e2fce..94051288f725 100644
--- a/drivers/staging/pata_rdc/pata_rdc.c
+++ b/drivers/staging/pata_rdc/pata_rdc.c
@@ -38,10 +38,6 @@ static const struct pci_device_id rdc_pata_id_table[] = {
38}; 38};
39MODULE_DEVICE_TABLE(pci, rdc_pata_id_table); 39MODULE_DEVICE_TABLE(pci, rdc_pata_id_table);
40 40
41static unsigned int in_module_init = 1; /* hotplugging check??? */
42
43/* ata device data */
44
45/* see ATA Host Adapters Standards. */ 41/* see ATA Host Adapters Standards. */
46static struct pci_bits ATA_Decode_Enable_Bits[] = { 42static struct pci_bits ATA_Decode_Enable_Bits[] = {
47 { 0x41U, 1U, 0x80UL, 0x80UL }, /* port (Channel) 0 */ 43 { 0x41U, 1U, 0x80UL, 0x80UL }, /* port (Channel) 0 */
@@ -982,11 +978,6 @@ static int __devinit rdc_init_one(struct pci_dev *pdev,
982 978
983 dbgprintf("rdc_init_one\n"); 979 dbgprintf("rdc_init_one\n");
984 980
985 /* no hotplugging support (FIXME) */ /* why??? */
986 if (!in_module_init) {
987 dbgprintf("rdc_init_one in_module_init == 0 failed \n");
988 return -ENODEV;
989 }
990 port_info[0] = rdc_pata_port_info[ent->driver_data]; 981 port_info[0] = rdc_pata_port_info[ent->driver_data];
991 port_info[1] = rdc_pata_port_info[ent->driver_data]; 982 port_info[1] = rdc_pata_port_info[ent->driver_data];
992 983
@@ -1026,8 +1017,6 @@ static int __init pata_rdc_init(void)
1026 return rc; 1017 return rc;
1027 } 1018 }
1028 1019
1029 in_module_init = 0;
1030
1031 return 0; 1020 return 0;
1032} 1021}
1033 1022