linux/drivers/ide/pci
Sam Ravnborg b66cae7672 hpt366: fix section mismatch warnings
hpt366: fix section mismatch warnings

Fix following warnings:
WARNING: o-sparc64/vmlinux.o(.data+0x195a38): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370
WARNING: o-sparc64/vmlinux.o(.data+0x195a40): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt370a
WARNING: o-sparc64/vmlinux.o(.data+0x195a48): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt372
WARNING: o-sparc64/vmlinux.o(.data+0x195a50): Section mismatch in reference from the variable hpt37x_info.0 to the variable .devinit.data:hpt372n

Replace a static array with a small switch resulting in
more readable code.
Mark the pci table __devinitconst.

A lot of variables are const but annotated __devinitdata.
Annotating them __devinitconst would cause a section type
conflict error when build for 64 bit powerpc.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2008-02-26 21:50:33 +01:00
..
aec62xx.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
alim15x3.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
amd74xx.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
atiixp.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
cmd64x.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
cmd640.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
cs5520.c cs5520: remove stale comment 2008-02-11 00:32:12 +01:00
cs5530.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
cs5535.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
cy82c693.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
delkin_cb.c ide: fix ide_unregister() usage in host drivers 2008-02-02 19:56:39 +01:00
generic.c ide-pci-generic: kill the unused ifdef/endif/MODULE code 2008-02-06 02:57:49 +01:00
hpt34x.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
hpt366.c hpt366: fix section mismatch warnings 2008-02-26 21:50:33 +01:00
it821x.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
it8213.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
jmicron.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
Makefile ide-pci-generic: kill the unused ifdef/endif/MODULE code 2008-02-06 02:57:49 +01:00
ns87415.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
opti621.c ide: add ->port_init_devs method to ide_hwif_t 2008-02-02 19:56:40 +01:00
pdc202xx_new.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
pdc202xx_old.c pdc202xx_old: always enable burst mode 2008-02-11 00:32:13 +01:00
piix.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
rz1000.c ide: add IDE_HFLAG_NO_{IO32_BIT,UNMASK_IRQS} host flags 2008-02-02 19:56:40 +01:00
sc1200.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
scc_pata.c ide: fix ide_unregister() usage in host drivers 2008-02-02 19:56:39 +01:00
serverworks.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
sgiioc4.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
siimage.c ide: remove write-only ->sata_misc[] from ide_hwif_t 2008-02-06 02:57:50 +01:00
sis5513.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
sl82c105.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
slc90e66.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
tc86c001.c ide: add ->cable_detect method to ide_hwif_t 2008-02-02 19:56:31 +01:00
triflex.c ide: remove needless includes from PCI host drivers 2008-02-02 19:56:33 +01:00
trm290.c trm290: use ide_execute_command() 2008-02-02 19:56:44 +01:00
via82cxxx.c via82cxxx: add new PCI id for cx700 2008-02-19 01:41:26 +01:00