diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:25:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:04 -0500 |
commit | 6c44512d06d3f6afcead304f051f4a06ed9be2cd (patch) | |
tree | a6a5bcddd316b57a5839ea50737d2f510867789e /drivers/atm/horizon.c | |
parent | 082a2004db27e16ee9a5b1234e6ab219ea29d693 (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/horizon.c')
-rw-r--r-- | drivers/atm/horizon.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c index 7d01c2a75256..1dc0519333f2 100644 --- a/drivers/atm/horizon.c +++ b/drivers/atm/horizon.c | |||
@@ -1789,7 +1789,7 @@ static void CLOCK_IT (const hrz_dev *dev, u32 ctrl) | |||
1789 | WRITE_IT_WAIT(dev, ctrl | SEEPROM_SK); | 1789 | WRITE_IT_WAIT(dev, ctrl | SEEPROM_SK); |
1790 | } | 1790 | } |
1791 | 1791 | ||
1792 | static u16 __devinit read_bia (const hrz_dev * dev, u16 addr) | 1792 | static u16 read_bia(const hrz_dev *dev, u16 addr) |
1793 | { | 1793 | { |
1794 | u32 ctrl = rd_regl (dev, CONTROL_0_REG); | 1794 | u32 ctrl = rd_regl (dev, CONTROL_0_REG); |
1795 | 1795 | ||
@@ -1845,7 +1845,8 @@ static u16 __devinit read_bia (const hrz_dev * dev, u16 addr) | |||
1845 | 1845 | ||
1846 | /********** initialise a card **********/ | 1846 | /********** initialise a card **********/ |
1847 | 1847 | ||
1848 | static int __devinit hrz_init (hrz_dev * dev) { | 1848 | static int hrz_init(hrz_dev *dev) |
1849 | { | ||
1849 | int onefivefive; | 1850 | int onefivefive; |
1850 | 1851 | ||
1851 | u16 chan; | 1852 | u16 chan; |
@@ -2681,7 +2682,8 @@ static const struct atmdev_ops hrz_ops = { | |||
2681 | .owner = THIS_MODULE, | 2682 | .owner = THIS_MODULE, |
2682 | }; | 2683 | }; |
2683 | 2684 | ||
2684 | static int __devinit hrz_probe(struct pci_dev *pci_dev, const struct pci_device_id *pci_ent) | 2685 | static int hrz_probe(struct pci_dev *pci_dev, |
2686 | const struct pci_device_id *pci_ent) | ||
2685 | { | 2687 | { |
2686 | hrz_dev * dev; | 2688 | hrz_dev * dev; |
2687 | int err = 0; | 2689 | int err = 0; |
@@ -2836,7 +2838,7 @@ out_disable: | |||
2836 | goto out; | 2838 | goto out; |
2837 | } | 2839 | } |
2838 | 2840 | ||
2839 | static void __devexit hrz_remove_one(struct pci_dev *pci_dev) | 2841 | static void hrz_remove_one(struct pci_dev *pci_dev) |
2840 | { | 2842 | { |
2841 | hrz_dev *dev; | 2843 | hrz_dev *dev; |
2842 | 2844 | ||
@@ -2901,7 +2903,7 @@ MODULE_DEVICE_TABLE(pci, hrz_pci_tbl); | |||
2901 | static struct pci_driver hrz_driver = { | 2903 | static struct pci_driver hrz_driver = { |
2902 | .name = "horizon", | 2904 | .name = "horizon", |
2903 | .probe = hrz_probe, | 2905 | .probe = hrz_probe, |
2904 | .remove = __devexit_p(hrz_remove_one), | 2906 | .remove = hrz_remove_one, |
2905 | .id_table = hrz_pci_tbl, | 2907 | .id_table = hrz_pci_tbl, |
2906 | }; | 2908 | }; |
2907 | 2909 | ||