aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ata_piix.c
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-01-30 15:02:02 -0500
committerJeff Garzik <jeff@garzik.org>2008-02-06 07:01:56 -0500
commitbc5468f52b785ffa1fe0ea289baec2c51384d436 (patch)
tree520a8b4466495be02a68b6607a439aa92a6b8da7 /drivers/ata/ata_piix.c
parent4f743d1d2224ee646b6b6d1d90f3d9d625dd9ab7 (diff)
ata_piix.c:piix_init_one() must be __devinit
This patch fixes the following section mismatches: <-- snip --> ... WARNING: drivers/ata/built-in.o(.text+0x15072): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_init_sata_map() WARNING: drivers/ata/built-in.o(.text+0x150dd): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_init_pcs() WARNING: drivers/ata/built-in.o(.text+0x150e5): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_init_sidpr() WARNING: drivers/ata/built-in.o(.text+0x15107): Section mismatch in reference from the function piix_init_one() to the function .devinit.text:piix_check_450nx_errata() ... <-- snip --> Signed-off-by: Adrian Bunk <bunk@kernel.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/ata_piix.c')
-rw-r--r--drivers/ata/ata_piix.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index 4b99ed0c59bb..9c2515f67de5 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -1603,7 +1603,8 @@ static void piix_iocfg_bit18_quirk(struct pci_dev *pdev)
1603 * Zero on success, or -ERRNO value. 1603 * Zero on success, or -ERRNO value.
1604 */ 1604 */
1605 1605
1606static int piix_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) 1606static int __devinit piix_init_one(struct pci_dev *pdev,
1607 const struct pci_device_id *ent)
1607{ 1608{
1608 static int printed_version; 1609 static int printed_version;
1609 struct device *dev = &pdev->dev; 1610 struct device *dev = &pdev->dev;