Skip to content

Commit

Permalink
sections: fix section conflicts in drivers/ide
Browse files Browse the repository at this point in the history
Signed-off-by: Andi Kleen <[email protected]>
Cc: David Miller <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Andi Kleen authored and torvalds committed Oct 5, 2012
1 parent 1849f23 commit e6b5370
Show file tree
Hide file tree
Showing 41 changed files with 53 additions and 53 deletions.
2 changes: 1 addition & 1 deletion drivers/ide/aec62xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static const struct ide_port_ops atp86x_port_ops = {
.cable_detect = atp86x_cable_detect,
};

static const struct ide_port_info aec62xx_chipsets[] __devinitdata = {
static const struct ide_port_info aec62xx_chipsets[] __devinitconst = {
{ /* 0: AEC6210 */
.name = DRV_NAME,
.init_chipset = init_chipset_aec62xx,
Expand Down
4 changes: 2 additions & 2 deletions drivers/ide/ali14xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,13 @@

/* port addresses for auto-detection */
#define ALI_NUM_PORTS 4
static const int ports[ALI_NUM_PORTS] __initdata =
static const int ports[ALI_NUM_PORTS] __initconst =
{ 0x074, 0x0f4, 0x034, 0x0e4 };

/* register initialization data */
typedef struct { u8 reg, data; } RegInitializer;

static const RegInitializer initData[] __initdata = {
static const RegInitializer initData[] __initconst = {
{0x01, 0x0f}, {0x02, 0x00}, {0x03, 0x00}, {0x04, 0x00},
{0x05, 0x00}, {0x06, 0x00}, {0x07, 0x2b}, {0x0a, 0x0f},
{0x25, 0x00}, {0x26, 0x00}, {0x27, 0x00}, {0x28, 0x00},
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/alim15x3.c
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ static const struct ide_dma_ops ali_dma_ops = {
.dma_sff_read_status = ide_dma_sff_read_status,
};

static const struct ide_port_info ali15x3_chipset __devinitdata = {
static const struct ide_port_info ali15x3_chipset __devinitconst = {
.name = DRV_NAME,
.init_chipset = init_chipset_ali15x3,
.init_hwif = init_hwif_ali15x3,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/amd74xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ static const struct ide_port_ops amd_port_ops = {
.udma_mask = udma, \
}

static const struct ide_port_info amd74xx_chipsets[] __devinitdata = {
static const struct ide_port_info amd74xx_chipsets[] __devinitconst = {
/* 0: AMD7401 */ DECLARE_AMD_DEV(0x00, ATA_UDMA2),
/* 1: AMD7409 */ DECLARE_AMD_DEV(ATA_SWDMA2, ATA_UDMA4),
/* 2: AMD7411/7441 */ DECLARE_AMD_DEV(ATA_SWDMA2, ATA_UDMA5),
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/atiixp.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static const struct ide_port_ops atiixp_port_ops = {
.cable_detect = atiixp_cable_detect,
};

static const struct ide_port_info atiixp_pci_info[] __devinitdata = {
static const struct ide_port_info atiixp_pci_info[] __devinitconst = {
{ /* 0: IXP200/300/400/700 */
.name = DRV_NAME,
.enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}},
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/cmd640.c
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ static int pci_conf2(void)
return 0;
}

static const struct ide_port_info cmd640_port_info __initdata = {
static const struct ide_port_info cmd640_port_info __initconst = {
.chipset = ide_cmd640,
.host_flags = IDE_HFLAG_SERIALIZE |
IDE_HFLAG_NO_DMA |
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/cmd64x.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ static const struct ide_dma_ops cmd646_rev1_dma_ops = {
.dma_sff_read_status = ide_dma_sff_read_status,
};

static const struct ide_port_info cmd64x_chipsets[] __devinitdata = {
static const struct ide_port_info cmd64x_chipsets[] __devinitconst = {
{ /* 0: CMD643 */
.name = DRV_NAME,
.init_chipset = init_chipset_cmd64x,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/cs5520.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ static const struct ide_port_ops cs5520_port_ops = {
.set_dma_mode = cs5520_set_dma_mode,
};

static const struct ide_port_info cyrix_chipset __devinitdata = {
static const struct ide_port_info cyrix_chipset __devinitconst = {
.name = DRV_NAME,
.enablebits = { { 0x60, 0x01, 0x01 }, { 0x60, 0x02, 0x02 } },
.port_ops = &cs5520_port_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/cs5530.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static const struct ide_port_ops cs5530_port_ops = {
.udma_filter = cs5530_udma_filter,
};

static const struct ide_port_info cs5530_chipset __devinitdata = {
static const struct ide_port_info cs5530_chipset __devinitconst = {
.name = DRV_NAME,
.init_chipset = init_chipset_cs5530,
.init_hwif = init_hwif_cs5530,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/cs5535.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static const struct ide_port_ops cs5535_port_ops = {
.cable_detect = cs5535_cable_detect,
};

static const struct ide_port_info cs5535_chipset __devinitdata = {
static const struct ide_port_info cs5535_chipset __devinitconst = {
.name = DRV_NAME,
.port_ops = &cs5535_port_ops,
.host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_POST_SET_MODE,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/cy82c693.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static const struct ide_port_ops cy82c693_port_ops = {
.set_dma_mode = cy82c693_set_dma_mode,
};

static const struct ide_port_info cy82c693_chipset __devinitdata = {
static const struct ide_port_info cy82c693_chipset __devinitconst = {
.name = DRV_NAME,
.init_iops = init_iops_cy82c693,
.port_ops = &cy82c693_port_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/dtc2278.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static const struct ide_port_ops dtc2278_port_ops = {
.set_pio_mode = dtc2278_set_pio_mode,
};

static const struct ide_port_info dtc2278_port_info __initdata = {
static const struct ide_port_info dtc2278_port_info __initconst = {
.name = DRV_NAME,
.chipset = ide_dtc2278,
.port_ops = &dtc2278_port_ops,
Expand Down
24 changes: 12 additions & 12 deletions drivers/ide/hpt366.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,87 +443,87 @@ static struct hpt_timings hpt37x_timings = {
}
};

static const struct hpt_info hpt36x __devinitdata = {
static const struct hpt_info hpt36x __devinitconst = {
.chip_name = "HPT36x",
.chip_type = HPT36x,
.udma_mask = HPT366_ALLOW_ATA66_3 ? (HPT366_ALLOW_ATA66_4 ? ATA_UDMA4 : ATA_UDMA3) : ATA_UDMA2,
.dpll_clk = 0, /* no DPLL */
.timings = &hpt36x_timings
};

static const struct hpt_info hpt370 __devinitdata = {
static const struct hpt_info hpt370 __devinitconst = {
.chip_name = "HPT370",
.chip_type = HPT370,
.udma_mask = HPT370_ALLOW_ATA100_5 ? ATA_UDMA5 : ATA_UDMA4,
.dpll_clk = 48,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt370a __devinitdata = {
static const struct hpt_info hpt370a __devinitconst = {
.chip_name = "HPT370A",
.chip_type = HPT370A,
.udma_mask = HPT370_ALLOW_ATA100_5 ? ATA_UDMA5 : ATA_UDMA4,
.dpll_clk = 48,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt374 __devinitdata = {
static const struct hpt_info hpt374 __devinitconst = {
.chip_name = "HPT374",
.chip_type = HPT374,
.udma_mask = ATA_UDMA5,
.dpll_clk = 48,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt372 __devinitdata = {
static const struct hpt_info hpt372 __devinitconst = {
.chip_name = "HPT372",
.chip_type = HPT372,
.udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
.dpll_clk = 55,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt372a __devinitdata = {
static const struct hpt_info hpt372a __devinitconst = {
.chip_name = "HPT372A",
.chip_type = HPT372A,
.udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
.dpll_clk = 66,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt302 __devinitdata = {
static const struct hpt_info hpt302 __devinitconst = {
.chip_name = "HPT302",
.chip_type = HPT302,
.udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
.dpll_clk = 66,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt371 __devinitdata = {
static const struct hpt_info hpt371 __devinitconst = {
.chip_name = "HPT371",
.chip_type = HPT371,
.udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
.dpll_clk = 66,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt372n __devinitdata = {
static const struct hpt_info hpt372n __devinitconst = {
.chip_name = "HPT372N",
.chip_type = HPT372N,
.udma_mask = HPT372_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
.dpll_clk = 77,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt302n __devinitdata = {
static const struct hpt_info hpt302n __devinitconst = {
.chip_name = "HPT302N",
.chip_type = HPT302N,
.udma_mask = HPT302_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
.dpll_clk = 77,
.timings = &hpt37x_timings
};

static const struct hpt_info hpt371n __devinitdata = {
static const struct hpt_info hpt371n __devinitconst = {
.chip_name = "HPT371N",
.chip_type = HPT371N,
.udma_mask = HPT371_ALLOW_ATA133_6 ? ATA_UDMA6 : ATA_UDMA5,
Expand Down Expand Up @@ -1361,7 +1361,7 @@ static const struct ide_dma_ops hpt36x_dma_ops = {
.dma_sff_read_status = ide_dma_sff_read_status,
};

static const struct ide_port_info hpt366_chipsets[] __devinitdata = {
static const struct ide_port_info hpt366_chipsets[] __devinitconst = {
{ /* 0: HPT36x */
.name = DRV_NAME,
.init_chipset = init_chipset_hpt366,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/ht6560b.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ static const struct ide_port_ops ht6560b_port_ops = {
.set_pio_mode = ht6560b_set_pio_mode,
};

static const struct ide_port_info ht6560b_port_info __initdata = {
static const struct ide_port_info ht6560b_port_info __initconst = {
.name = DRV_NAME,
.chipset = ide_ht6560b,
.tp_ops = &ht6560b_tp_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/icside.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ icside_register_v5(struct icside_state *state, struct expansion_card *ec)
return ret;
}

static const struct ide_port_info icside_v6_port_info __initdata = {
static const struct ide_port_info icside_v6_port_info __initconst = {
.init_dma = icside_dma_off_init,
.port_ops = &icside_v6_no_dma_port_ops,
.host_flags = IDE_HFLAG_SERIALIZE | IDE_HFLAG_MMIO,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/ide-pci-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static const struct ide_port_ops netcell_port_ops = {
.udma_mask = ATA_UDMA6, \
}

static const struct ide_port_info generic_chipsets[] __devinitdata = {
static const struct ide_port_info generic_chipsets[] __devinitconst = {
/* 0: Unknown */
DECLARE_GENERIC_PCI_DEV(0),

Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/it8172.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ static const struct ide_port_ops it8172_port_ops = {
.set_dma_mode = it8172_set_dma_mode,
};

static const struct ide_port_info it8172_port_info __devinitdata = {
static const struct ide_port_info it8172_port_info __devinitconst = {
.name = DRV_NAME,
.port_ops = &it8172_port_ops,
.enablebits = { {0x41, 0x80, 0x80}, {0x00, 0x00, 0x00} },
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/it8213.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static const struct ide_port_ops it8213_port_ops = {
.cable_detect = it8213_cable_detect,
};

static const struct ide_port_info it8213_chipset __devinitdata = {
static const struct ide_port_info it8213_chipset __devinitconst = {
.name = DRV_NAME,
.enablebits = { {0x41, 0x80, 0x80} },
.port_ops = &it8213_port_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/it821x.c
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ static const struct ide_port_ops it821x_port_ops = {
.cable_detect = it821x_cable_detect,
};

static const struct ide_port_info it821x_chipset __devinitdata = {
static const struct ide_port_info it821x_chipset __devinitconst = {
.name = DRV_NAME,
.init_chipset = init_chipset_it821x,
.init_hwif = init_hwif_it821x,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/jmicron.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static const struct ide_port_ops jmicron_port_ops = {
.cable_detect = jmicron_cable_detect,
};

static const struct ide_port_info jmicron_chipset __devinitdata = {
static const struct ide_port_info jmicron_chipset __devinitconst = {
.name = DRV_NAME,
.enablebits = { { 0x40, 0x01, 0x01 }, { 0x40, 0x10, 0x10 } },
.port_ops = &jmicron_port_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/ns87415.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ static const struct ide_dma_ops ns87415_dma_ops = {
.dma_sff_read_status = superio_dma_sff_read_status,
};

static const struct ide_port_info ns87415_chipset __devinitdata = {
static const struct ide_port_info ns87415_chipset __devinitconst = {
.name = DRV_NAME,
.init_hwif = init_hwif_ns87415,
.tp_ops = &ns87415_tp_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/opti621.c
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static const struct ide_port_ops opti621_port_ops = {
.set_pio_mode = opti621_set_pio_mode,
};

static const struct ide_port_info opti621_chipset __devinitdata = {
static const struct ide_port_info opti621_chipset __devinitconst = {
.name = DRV_NAME,
.enablebits = { {0x45, 0x80, 0x00}, {0x40, 0x08, 0x00} },
.port_ops = &opti621_port_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/pdc202xx_new.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ static const struct ide_port_ops pdcnew_port_ops = {
.udma_mask = udma, \
}

static const struct ide_port_info pdcnew_chipsets[] __devinitdata = {
static const struct ide_port_info pdcnew_chipsets[] __devinitconst = {
/* 0: PDC202{68,70} */ DECLARE_PDCNEW_DEV(ATA_UDMA5),
/* 1: PDC202{69,71,75,76,77} */ DECLARE_PDCNEW_DEV(ATA_UDMA6),
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/pdc202xx_old.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ static const struct ide_dma_ops pdc2026x_dma_ops = {
.max_sectors = sectors, \
}

static const struct ide_port_info pdc202xx_chipsets[] __devinitdata = {
static const struct ide_port_info pdc202xx_chipsets[] __devinitconst = {
{ /* 0: PDC20246 */
.name = DRV_NAME,
.init_chipset = init_chipset_pdc202xx,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/piix.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ static const struct ide_port_ops ich_port_ops = {
.udma_mask = udma, \
}

static const struct ide_port_info piix_pci_info[] __devinitdata = {
static const struct ide_port_info piix_pci_info[] __devinitconst = {
/* 0: MPIIX */
{ /*
* MPIIX actually has only a single IDE channel mapped to
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/qd65xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static const struct ide_port_ops qd6580_port_ops = {
.set_pio_mode = qd6580_set_pio_mode,
};

static const struct ide_port_info qd65xx_port_info __initdata = {
static const struct ide_port_info qd65xx_port_info __initconst = {
.name = DRV_NAME,
.tp_ops = &qd65xx_tp_ops,
.chipset = ide_qd65xx,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/rz1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static int __devinit rz1000_disable_readahead(struct pci_dev *dev)
}
}

static const struct ide_port_info rz1000_chipset __devinitdata = {
static const struct ide_port_info rz1000_chipset __devinitconst = {
.name = DRV_NAME,
.host_flags = IDE_HFLAG_NO_DMA,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/sc1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static const struct ide_dma_ops sc1200_dma_ops = {
.dma_sff_read_status = ide_dma_sff_read_status,
};

static const struct ide_port_info sc1200_chipset __devinitdata = {
static const struct ide_port_info sc1200_chipset __devinitconst = {
.name = DRV_NAME,
.port_ops = &sc1200_port_ops,
.dma_ops = &sc1200_dma_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/scc_pata.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ static const struct ide_dma_ops scc_dma_ops = {
.dma_sff_read_status = scc_dma_sff_read_status,
};

static const struct ide_port_info scc_chipset __devinitdata = {
static const struct ide_port_info scc_chipset __devinitconst = {
.name = "sccIDE",
.init_iops = init_iops_scc,
.init_dma = scc_init_dma,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/serverworks.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ static const struct ide_port_ops svwks_port_ops = {
.cable_detect = svwks_cable_detect,
};

static const struct ide_port_info serverworks_chipsets[] __devinitdata = {
static const struct ide_port_info serverworks_chipsets[] __devinitconst = {
{ /* 0: OSB4 */
.name = DRV_NAME,
.init_chipset = init_chipset_svwks,
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/siimage.c
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ static const struct ide_dma_ops sil_dma_ops = {
.udma_mask = ATA_UDMA6, \
}

static const struct ide_port_info siimage_chipsets[] __devinitdata = {
static const struct ide_port_info siimage_chipsets[] __devinitconst = {
/* 0: SiI680 */ DECLARE_SII_DEV(&sil_pata_port_ops),
/* 1: SiI3112 */ DECLARE_SII_DEV(&sil_sata_port_ops)
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/ide/sis5513.c
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ static const struct ide_port_ops sis_ata133_port_ops = {
.cable_detect = sis_cable_detect,
};

static const struct ide_port_info sis5513_chipset __devinitdata = {
static const struct ide_port_info sis5513_chipset __devinitconst = {
.name = DRV_NAME,
.init_chipset = init_chipset_sis5513,
.enablebits = { {0x4a, 0x02, 0x02}, {0x4a, 0x04, 0x04} },
Expand Down
Loading

0 comments on commit e6b5370

Please sign in to comment.