Commit 0562d051 authored by Randy Dunlap's avatar Randy Dunlap Committed by Linus Torvalds

[PATCH] atm/lanai: fix section references

atm/lanai: fix text section references to __init text;
  they should be __devinit instead of __init;

Error: ./drivers/atm/lanai.o .text refers to 0000000000002105 R_X86_64_PC32     .init.text+0x0000000000000021
Error: ./drivers/atm/lanai.o .text refers to 0000000000002116 R_X86_64_PC32     .init.text+0x0000000000000021
Error: ./drivers/atm/lanai.o .text refers to 0000000000002132 R_X86_64_PC32     .init.text+0x0000000000000021
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent f28ab137
...@@ -566,7 +566,7 @@ static int __init sram_test_word( ...@@ -566,7 +566,7 @@ static int __init sram_test_word(
return -EIO; return -EIO;
} }
static int __init sram_test_pass(const struct lanai_dev *lanai, u32 pattern) static int __devinit sram_test_pass(const struct lanai_dev *lanai, u32 pattern)
{ {
int offset, result = 0; int offset, result = 0;
for (offset = 0; offset < SRAM_BYTES && result == 0; offset += 4) for (offset = 0; offset < SRAM_BYTES && result == 0; offset += 4)
...@@ -574,7 +574,7 @@ static int __init sram_test_pass(const struct lanai_dev *lanai, u32 pattern) ...@@ -574,7 +574,7 @@ static int __init sram_test_pass(const struct lanai_dev *lanai, u32 pattern)
return result; return result;
} }
static int __init sram_test_and_clear(const struct lanai_dev *lanai) static int __devinit sram_test_and_clear(const struct lanai_dev *lanai)
{ {
#ifdef FULL_MEMORY_TEST #ifdef FULL_MEMORY_TEST
int result; int result;
...@@ -860,7 +860,7 @@ static inline void aal0_buffer_free(struct lanai_dev *lanai) ...@@ -860,7 +860,7 @@ static inline void aal0_buffer_free(struct lanai_dev *lanai)
#ifndef READ_EEPROM #ifndef READ_EEPROM
/* Stub functions to use if EEPROM reading is disabled */ /* Stub functions to use if EEPROM reading is disabled */
static int __init eeprom_read(struct lanai_dev *lanai) static int __devinit eeprom_read(struct lanai_dev *lanai)
{ {
printk(KERN_INFO DEV_LABEL "(itf %d): *NOT* reading EEPROM\n", printk(KERN_INFO DEV_LABEL "(itf %d): *NOT* reading EEPROM\n",
lanai->number); lanai->number);
...@@ -868,7 +868,7 @@ static int __init eeprom_read(struct lanai_dev *lanai) ...@@ -868,7 +868,7 @@ static int __init eeprom_read(struct lanai_dev *lanai)
return 0; return 0;
} }
static int __init eeprom_validate(struct lanai_dev *lanai) static int __devinit eeprom_validate(struct lanai_dev *lanai)
{ {
lanai->serialno = 0; lanai->serialno = 0;
lanai->magicno = EEPROM_MAGIC_VALUE; lanai->magicno = EEPROM_MAGIC_VALUE;
...@@ -877,7 +877,7 @@ static int __init eeprom_validate(struct lanai_dev *lanai) ...@@ -877,7 +877,7 @@ static int __init eeprom_validate(struct lanai_dev *lanai)
#else /* READ_EEPROM */ #else /* READ_EEPROM */
static int __init eeprom_read(struct lanai_dev *lanai) static int __devinit eeprom_read(struct lanai_dev *lanai)
{ {
int i, address; int i, address;
u8 data; u8 data;
...@@ -953,7 +953,7 @@ static inline u32 eeprom_be4(const struct lanai_dev *lanai, int address) ...@@ -953,7 +953,7 @@ static inline u32 eeprom_be4(const struct lanai_dev *lanai, int address)
} }
/* Checksum/validate EEPROM contents */ /* Checksum/validate EEPROM contents */
static int __init eeprom_validate(struct lanai_dev *lanai) static int __devinit eeprom_validate(struct lanai_dev *lanai)
{ {
int i, s; int i, s;
u32 v; u32 v;
...@@ -1449,7 +1449,7 @@ static void vcc_rx_aal0(struct lanai_dev *lanai) ...@@ -1449,7 +1449,7 @@ static void vcc_rx_aal0(struct lanai_dev *lanai)
#include <linux/vmalloc.h> #include <linux/vmalloc.h>
#endif #endif
static int __init vcc_table_allocate(struct lanai_dev *lanai) static int __devinit vcc_table_allocate(struct lanai_dev *lanai)
{ {
#ifdef VCCTABLE_GETFREEPAGE #ifdef VCCTABLE_GETFREEPAGE
APRINTK((lanai->num_vci) * sizeof(struct lanai_vcc *) <= PAGE_SIZE, APRINTK((lanai->num_vci) * sizeof(struct lanai_vcc *) <= PAGE_SIZE,
...@@ -1596,7 +1596,7 @@ static void lanai_reset(struct lanai_dev *lanai) ...@@ -1596,7 +1596,7 @@ static void lanai_reset(struct lanai_dev *lanai)
/* /*
* Allocate service buffer and tell card about it * Allocate service buffer and tell card about it
*/ */
static int __init service_buffer_allocate(struct lanai_dev *lanai) static int __devinit service_buffer_allocate(struct lanai_dev *lanai)
{ {
lanai_buf_allocate(&lanai->service, SERVICE_ENTRIES * 4, 8, lanai_buf_allocate(&lanai->service, SERVICE_ENTRIES * 4, 8,
lanai->pci); lanai->pci);
...@@ -1952,7 +1952,7 @@ static int check_board_id_and_rev(const char *name, u32 val, int *revp) ...@@ -1952,7 +1952,7 @@ static int check_board_id_and_rev(const char *name, u32 val, int *revp)
/* -------------------- PCI INITIALIZATION/SHUTDOWN: */ /* -------------------- PCI INITIALIZATION/SHUTDOWN: */
static int __init lanai_pci_start(struct lanai_dev *lanai) static int __devinit lanai_pci_start(struct lanai_dev *lanai)
{ {
struct pci_dev *pci = lanai->pci; struct pci_dev *pci = lanai->pci;
int result; int result;
...@@ -2148,7 +2148,7 @@ static inline void lanai_cbr_shutdown(struct lanai_dev *lanai) ...@@ -2148,7 +2148,7 @@ static inline void lanai_cbr_shutdown(struct lanai_dev *lanai)
/* -------------------- OPERATIONS: */ /* -------------------- OPERATIONS: */
/* setup a newly detected device */ /* setup a newly detected device */
static int __init lanai_dev_open(struct atm_dev *atmdev) static int __devinit lanai_dev_open(struct atm_dev *atmdev)
{ {
struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data;
unsigned long raw_base; unsigned long raw_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment