aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/atm/lanai.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:25:04 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:04 -0500
commit6c44512d06d3f6afcead304f051f4a06ed9be2cd (patch)
treea6a5bcddd316b57a5839ea50737d2f510867789e /drivers/atm/lanai.c
parent082a2004db27e16ee9a5b1234e6ab219ea29d693 (diff)
Drivers: atm: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/atm/lanai.c')
-rw-r--r--drivers/atm/lanai.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/atm/lanai.c b/drivers/atm/lanai.c
index 68c758871812..fa7d701933ba 100644
--- a/drivers/atm/lanai.c
+++ b/drivers/atm/lanai.c
@@ -551,8 +551,8 @@ static inline void sram_write(const struct lanai_dev *lanai,
551 writel(val, sram_addr(lanai, offset)); 551 writel(val, sram_addr(lanai, offset));
552} 552}
553 553
554static int __devinit sram_test_word(const struct lanai_dev *lanai, 554static int sram_test_word(const struct lanai_dev *lanai, int offset,
555 int offset, u32 pattern) 555 u32 pattern)
556{ 556{
557 u32 readback; 557 u32 readback;
558 sram_write(lanai, pattern, offset); 558 sram_write(lanai, pattern, offset);
@@ -566,7 +566,7 @@ static int __devinit sram_test_word(const struct lanai_dev *lanai,
566 return -EIO; 566 return -EIO;
567} 567}
568 568
569static int __devinit sram_test_pass(const struct lanai_dev *lanai, u32 pattern) 569static int sram_test_pass(const struct lanai_dev *lanai, u32 pattern)
570{ 570{
571 int offset, result = 0; 571 int offset, result = 0;
572 for (offset = 0; offset < SRAM_BYTES && result == 0; offset += 4) 572 for (offset = 0; offset < SRAM_BYTES && result == 0; offset += 4)
@@ -574,7 +574,7 @@ static int __devinit sram_test_pass(const struct lanai_dev *lanai, u32 pattern)
574 return result; 574 return result;
575} 575}
576 576
577static int __devinit sram_test_and_clear(const struct lanai_dev *lanai) 577static int sram_test_and_clear(const struct lanai_dev *lanai)
578{ 578{
579#ifdef FULL_MEMORY_TEST 579#ifdef FULL_MEMORY_TEST
580 int result; 580 int result;
@@ -860,7 +860,7 @@ static inline void aal0_buffer_free(struct lanai_dev *lanai)
860#ifndef READ_EEPROM 860#ifndef READ_EEPROM
861 861
862/* Stub functions to use if EEPROM reading is disabled */ 862/* Stub functions to use if EEPROM reading is disabled */
863static int __devinit eeprom_read(struct lanai_dev *lanai) 863static int eeprom_read(struct lanai_dev *lanai)
864{ 864{
865 printk(KERN_INFO DEV_LABEL "(itf %d): *NOT* reading EEPROM\n", 865 printk(KERN_INFO DEV_LABEL "(itf %d): *NOT* reading EEPROM\n",
866 lanai->number); 866 lanai->number);
@@ -868,7 +868,7 @@ static int __devinit eeprom_read(struct lanai_dev *lanai)
868 return 0; 868 return 0;
869} 869}
870 870
871static int __devinit eeprom_validate(struct lanai_dev *lanai) 871static int eeprom_validate(struct lanai_dev *lanai)
872{ 872{
873 lanai->serialno = 0; 873 lanai->serialno = 0;
874 lanai->magicno = EEPROM_MAGIC_VALUE; 874 lanai->magicno = EEPROM_MAGIC_VALUE;
@@ -877,7 +877,7 @@ static int __devinit eeprom_validate(struct lanai_dev *lanai)
877 877
878#else /* READ_EEPROM */ 878#else /* READ_EEPROM */
879 879
880static int __devinit eeprom_read(struct lanai_dev *lanai) 880static int eeprom_read(struct lanai_dev *lanai)
881{ 881{
882 int i, address; 882 int i, address;
883 u8 data; 883 u8 data;
@@ -953,7 +953,7 @@ static inline u32 eeprom_be4(const struct lanai_dev *lanai, int address)
953} 953}
954 954
955/* Checksum/validate EEPROM contents */ 955/* Checksum/validate EEPROM contents */
956static int __devinit eeprom_validate(struct lanai_dev *lanai) 956static int eeprom_validate(struct lanai_dev *lanai)
957{ 957{
958 int i, s; 958 int i, s;
959 u32 v; 959 u32 v;
@@ -1448,7 +1448,7 @@ static void vcc_rx_aal0(struct lanai_dev *lanai)
1448#include <linux/vmalloc.h> 1448#include <linux/vmalloc.h>
1449#endif 1449#endif
1450 1450
1451static int __devinit vcc_table_allocate(struct lanai_dev *lanai) 1451static int vcc_table_allocate(struct lanai_dev *lanai)
1452{ 1452{
1453#ifdef VCCTABLE_GETFREEPAGE 1453#ifdef VCCTABLE_GETFREEPAGE
1454 APRINTK((lanai->num_vci) * sizeof(struct lanai_vcc *) <= PAGE_SIZE, 1454 APRINTK((lanai->num_vci) * sizeof(struct lanai_vcc *) <= PAGE_SIZE,
@@ -1588,7 +1588,7 @@ static void lanai_reset(struct lanai_dev *lanai)
1588/* 1588/*
1589 * Allocate service buffer and tell card about it 1589 * Allocate service buffer and tell card about it
1590 */ 1590 */
1591static int __devinit service_buffer_allocate(struct lanai_dev *lanai) 1591static int service_buffer_allocate(struct lanai_dev *lanai)
1592{ 1592{
1593 lanai_buf_allocate(&lanai->service, SERVICE_ENTRIES * 4, 8, 1593 lanai_buf_allocate(&lanai->service, SERVICE_ENTRIES * 4, 8,
1594 lanai->pci); 1594 lanai->pci);
@@ -1942,7 +1942,7 @@ static int check_board_id_and_rev(const char *name, u32 val, int *revp)
1942 1942
1943/* -------------------- PCI INITIALIZATION/SHUTDOWN: */ 1943/* -------------------- PCI INITIALIZATION/SHUTDOWN: */
1944 1944
1945static int __devinit lanai_pci_start(struct lanai_dev *lanai) 1945static int lanai_pci_start(struct lanai_dev *lanai)
1946{ 1946{
1947 struct pci_dev *pci = lanai->pci; 1947 struct pci_dev *pci = lanai->pci;
1948 int result; 1948 int result;
@@ -2123,7 +2123,7 @@ static inline void lanai_cbr_shutdown(struct lanai_dev *lanai)
2123/* -------------------- OPERATIONS: */ 2123/* -------------------- OPERATIONS: */
2124 2124
2125/* setup a newly detected device */ 2125/* setup a newly detected device */
2126static int __devinit lanai_dev_open(struct atm_dev *atmdev) 2126static int lanai_dev_open(struct atm_dev *atmdev)
2127{ 2127{
2128 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data; 2128 struct lanai_dev *lanai = (struct lanai_dev *) atmdev->dev_data;
2129 unsigned long raw_base; 2129 unsigned long raw_base;
@@ -2566,8 +2566,8 @@ static const struct atmdev_ops ops = {
2566}; 2566};
2567 2567
2568/* initialize one probed card */ 2568/* initialize one probed card */
2569static int __devinit lanai_init_one(struct pci_dev *pci, 2569static int lanai_init_one(struct pci_dev *pci,
2570 const struct pci_device_id *ident) 2570 const struct pci_device_id *ident)
2571{ 2571{
2572 struct lanai_dev *lanai; 2572 struct lanai_dev *lanai;
2573 struct atm_dev *atmdev; 2573 struct atm_dev *atmdev;