diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-12-03 09:22:44 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-03 14:16:11 -0500 |
commit | 3c8ac0f2ad53a96ac58efe7c98fac2986d081dfc (patch) | |
tree | b6a0420ea67e65977d71f66a8ecb1ac55952dce1 /drivers/net/can/sja1000 | |
parent | 7c47bab62192d4dd6ba7f7633f2fb94d259e964e (diff) |
can: remove __dev* attributes
CONFIG_HOTPLUG is going away as an option. As result the __dev*
markings will be going away.
Remove use of __devinit, __devexit_p, __devinitdata, __devinitconst,
and __devexit.
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: linux-can@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/can/sja1000')
-rw-r--r-- | drivers/net/can/sja1000/ems_pci.c | 2 | ||||
-rw-r--r-- | drivers/net/can/sja1000/ems_pcmcia.c | 4 | ||||
-rw-r--r-- | drivers/net/can/sja1000/kvaser_pci.c | 6 | ||||
-rw-r--r-- | drivers/net/can/sja1000/peak_pci.c | 6 | ||||
-rw-r--r-- | drivers/net/can/sja1000/peak_pcmcia.c | 2 | ||||
-rw-r--r-- | drivers/net/can/sja1000/plx_pci.c | 20 | ||||
-rw-r--r-- | drivers/net/can/sja1000/sja1000_isa.c | 16 | ||||
-rw-r--r-- | drivers/net/can/sja1000/sja1000_of_platform.c | 8 | ||||
-rw-r--r-- | drivers/net/can/sja1000/tscan1.c | 8 |
9 files changed, 36 insertions, 36 deletions
diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c index 5c6d412bafb5..f232bc8d0872 100644 --- a/drivers/net/can/sja1000/ems_pci.c +++ b/drivers/net/can/sja1000/ems_pci.c | |||
@@ -220,7 +220,7 @@ static void ems_pci_card_reset(struct ems_pci_card *card) | |||
220 | * Probe PCI device for EMS CAN signature and register each available | 220 | * Probe PCI device for EMS CAN signature and register each available |
221 | * CAN channel to SJA1000 Socket-CAN subsystem. | 221 | * CAN channel to SJA1000 Socket-CAN subsystem. |
222 | */ | 222 | */ |
223 | static int __devinit ems_pci_add_card(struct pci_dev *pdev, | 223 | static int ems_pci_add_card(struct pci_dev *pdev, |
224 | const struct pci_device_id *ent) | 224 | const struct pci_device_id *ent) |
225 | { | 225 | { |
226 | struct sja1000_priv *priv; | 226 | struct sja1000_priv *priv; |
diff --git a/drivers/net/can/sja1000/ems_pcmcia.c b/drivers/net/can/sja1000/ems_pcmcia.c index 075a5457a190..46fc313214a2 100644 --- a/drivers/net/can/sja1000/ems_pcmcia.c +++ b/drivers/net/can/sja1000/ems_pcmcia.c | |||
@@ -166,7 +166,7 @@ static void ems_pcmcia_del_card(struct pcmcia_device *pdev) | |||
166 | * Probe PCI device for EMS CAN signature and register each available | 166 | * Probe PCI device for EMS CAN signature and register each available |
167 | * CAN channel to SJA1000 Socket-CAN subsystem. | 167 | * CAN channel to SJA1000 Socket-CAN subsystem. |
168 | */ | 168 | */ |
169 | static int __devinit ems_pcmcia_add_card(struct pcmcia_device *pdev, | 169 | static int ems_pcmcia_add_card(struct pcmcia_device *pdev, |
170 | unsigned long base) | 170 | unsigned long base) |
171 | { | 171 | { |
172 | struct sja1000_priv *priv; | 172 | struct sja1000_priv *priv; |
@@ -256,7 +256,7 @@ failure_cleanup: | |||
256 | /* | 256 | /* |
257 | * Setup PCMCIA socket and probe for EMS CPC-CARD | 257 | * Setup PCMCIA socket and probe for EMS CPC-CARD |
258 | */ | 258 | */ |
259 | static int __devinit ems_pcmcia_probe(struct pcmcia_device *dev) | 259 | static int ems_pcmcia_probe(struct pcmcia_device *dev) |
260 | { | 260 | { |
261 | int csval; | 261 | int csval; |
262 | 262 | ||
diff --git a/drivers/net/can/sja1000/kvaser_pci.c b/drivers/net/can/sja1000/kvaser_pci.c index 23ed6ea4c7c3..4efdaf26eaea 100644 --- a/drivers/net/can/sja1000/kvaser_pci.c +++ b/drivers/net/can/sja1000/kvaser_pci.c | |||
@@ -290,7 +290,7 @@ failure: | |||
290 | return err; | 290 | return err; |
291 | } | 291 | } |
292 | 292 | ||
293 | static int __devinit kvaser_pci_init_one(struct pci_dev *pdev, | 293 | static int kvaser_pci_init_one(struct pci_dev *pdev, |
294 | const struct pci_device_id *ent) | 294 | const struct pci_device_id *ent) |
295 | { | 295 | { |
296 | int err; | 296 | int err; |
@@ -379,7 +379,7 @@ failure: | |||
379 | 379 | ||
380 | } | 380 | } |
381 | 381 | ||
382 | static void __devexit kvaser_pci_remove_one(struct pci_dev *pdev) | 382 | static void kvaser_pci_remove_one(struct pci_dev *pdev) |
383 | { | 383 | { |
384 | struct net_device *dev = pci_get_drvdata(pdev); | 384 | struct net_device *dev = pci_get_drvdata(pdev); |
385 | 385 | ||
@@ -394,7 +394,7 @@ static struct pci_driver kvaser_pci_driver = { | |||
394 | .name = DRV_NAME, | 394 | .name = DRV_NAME, |
395 | .id_table = kvaser_pci_tbl, | 395 | .id_table = kvaser_pci_tbl, |
396 | .probe = kvaser_pci_init_one, | 396 | .probe = kvaser_pci_init_one, |
397 | .remove = __devexit_p(kvaser_pci_remove_one), | 397 | .remove = kvaser_pci_remove_one, |
398 | }; | 398 | }; |
399 | 399 | ||
400 | module_pci_driver(kvaser_pci_driver); | 400 | module_pci_driver(kvaser_pci_driver); |
diff --git a/drivers/net/can/sja1000/peak_pci.c b/drivers/net/can/sja1000/peak_pci.c index 6525dbcca4e3..3faeb3d84362 100644 --- a/drivers/net/can/sja1000/peak_pci.c +++ b/drivers/net/can/sja1000/peak_pci.c | |||
@@ -551,7 +551,7 @@ static void peak_pci_post_irq(const struct sja1000_priv *priv) | |||
551 | writew(chan->icr_mask, chan->cfg_base + PITA_ICR); | 551 | writew(chan->icr_mask, chan->cfg_base + PITA_ICR); |
552 | } | 552 | } |
553 | 553 | ||
554 | static int __devinit peak_pci_probe(struct pci_dev *pdev, | 554 | static int peak_pci_probe(struct pci_dev *pdev, |
555 | const struct pci_device_id *ent) | 555 | const struct pci_device_id *ent) |
556 | { | 556 | { |
557 | struct sja1000_priv *priv; | 557 | struct sja1000_priv *priv; |
@@ -717,7 +717,7 @@ failure_disable_pci: | |||
717 | return err; | 717 | return err; |
718 | } | 718 | } |
719 | 719 | ||
720 | static void __devexit peak_pci_remove(struct pci_dev *pdev) | 720 | static void peak_pci_remove(struct pci_dev *pdev) |
721 | { | 721 | { |
722 | struct net_device *dev = pci_get_drvdata(pdev); /* Last device */ | 722 | struct net_device *dev = pci_get_drvdata(pdev); /* Last device */ |
723 | struct sja1000_priv *priv = netdev_priv(dev); | 723 | struct sja1000_priv *priv = netdev_priv(dev); |
@@ -757,7 +757,7 @@ static struct pci_driver peak_pci_driver = { | |||
757 | .name = DRV_NAME, | 757 | .name = DRV_NAME, |
758 | .id_table = peak_pci_tbl, | 758 | .id_table = peak_pci_tbl, |
759 | .probe = peak_pci_probe, | 759 | .probe = peak_pci_probe, |
760 | .remove = __devexit_p(peak_pci_remove), | 760 | .remove = peak_pci_remove, |
761 | }; | 761 | }; |
762 | 762 | ||
763 | module_pci_driver(peak_pci_driver); | 763 | module_pci_driver(peak_pci_driver); |
diff --git a/drivers/net/can/sja1000/peak_pcmcia.c b/drivers/net/can/sja1000/peak_pcmcia.c index 272a85f32b14..f1175142b0a0 100644 --- a/drivers/net/can/sja1000/peak_pcmcia.c +++ b/drivers/net/can/sja1000/peak_pcmcia.c | |||
@@ -632,7 +632,7 @@ static void pcan_free(struct pcmcia_device *pdev) | |||
632 | /* | 632 | /* |
633 | * setup PCMCIA socket and probe for PEAK-System PC-CARD | 633 | * setup PCMCIA socket and probe for PEAK-System PC-CARD |
634 | */ | 634 | */ |
635 | static int __devinit pcan_probe(struct pcmcia_device *pdev) | 635 | static int pcan_probe(struct pcmcia_device *pdev) |
636 | { | 636 | { |
637 | struct pcan_pccard *card; | 637 | struct pcan_pccard *card; |
638 | int err; | 638 | int err; |
diff --git a/drivers/net/can/sja1000/plx_pci.c b/drivers/net/can/sja1000/plx_pci.c index dc04407aa217..8b233f8c95f2 100644 --- a/drivers/net/can/sja1000/plx_pci.c +++ b/drivers/net/can/sja1000/plx_pci.c | |||
@@ -162,7 +162,7 @@ struct plx_pci_card_info { | |||
162 | void (*reset_func)(struct pci_dev *pdev); | 162 | void (*reset_func)(struct pci_dev *pdev); |
163 | }; | 163 | }; |
164 | 164 | ||
165 | static struct plx_pci_card_info plx_pci_card_info_adlink __devinitdata = { | 165 | static struct plx_pci_card_info plx_pci_card_info_adlink = { |
166 | "Adlink PCI-7841/cPCI-7841", 2, | 166 | "Adlink PCI-7841/cPCI-7841", 2, |
167 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 167 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
168 | {1, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} }, | 168 | {1, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} }, |
@@ -170,7 +170,7 @@ static struct plx_pci_card_info plx_pci_card_info_adlink __devinitdata = { | |||
170 | /* based on PLX9052 */ | 170 | /* based on PLX9052 */ |
171 | }; | 171 | }; |
172 | 172 | ||
173 | static struct plx_pci_card_info plx_pci_card_info_adlink_se __devinitdata = { | 173 | static struct plx_pci_card_info plx_pci_card_info_adlink_se = { |
174 | "Adlink PCI-7841/cPCI-7841 SE", 2, | 174 | "Adlink PCI-7841/cPCI-7841 SE", 2, |
175 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 175 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
176 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} }, | 176 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x80, 0x80} }, |
@@ -178,7 +178,7 @@ static struct plx_pci_card_info plx_pci_card_info_adlink_se __devinitdata = { | |||
178 | /* based on PLX9052 */ | 178 | /* based on PLX9052 */ |
179 | }; | 179 | }; |
180 | 180 | ||
181 | static struct plx_pci_card_info plx_pci_card_info_esd200 __devinitdata = { | 181 | static struct plx_pci_card_info plx_pci_card_info_esd200 = { |
182 | "esd CAN-PCI/CPCI/PCI104/200", 2, | 182 | "esd CAN-PCI/CPCI/PCI104/200", 2, |
183 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 183 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
184 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, | 184 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, |
@@ -186,7 +186,7 @@ static struct plx_pci_card_info plx_pci_card_info_esd200 __devinitdata = { | |||
186 | /* based on PLX9030/9050 */ | 186 | /* based on PLX9030/9050 */ |
187 | }; | 187 | }; |
188 | 188 | ||
189 | static struct plx_pci_card_info plx_pci_card_info_esd266 __devinitdata = { | 189 | static struct plx_pci_card_info plx_pci_card_info_esd266 = { |
190 | "esd CAN-PCI/PMC/266", 2, | 190 | "esd CAN-PCI/PMC/266", 2, |
191 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 191 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
192 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, | 192 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, |
@@ -194,7 +194,7 @@ static struct plx_pci_card_info plx_pci_card_info_esd266 __devinitdata = { | |||
194 | /* based on PLX9056 */ | 194 | /* based on PLX9056 */ |
195 | }; | 195 | }; |
196 | 196 | ||
197 | static struct plx_pci_card_info plx_pci_card_info_esd2000 __devinitdata = { | 197 | static struct plx_pci_card_info plx_pci_card_info_esd2000 = { |
198 | "esd CAN-PCIe/2000", 2, | 198 | "esd CAN-PCIe/2000", 2, |
199 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 199 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
200 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, | 200 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x100, 0x80} }, |
@@ -202,7 +202,7 @@ static struct plx_pci_card_info plx_pci_card_info_esd2000 __devinitdata = { | |||
202 | /* based on PEX8311 */ | 202 | /* based on PEX8311 */ |
203 | }; | 203 | }; |
204 | 204 | ||
205 | static struct plx_pci_card_info plx_pci_card_info_ixxat __devinitdata = { | 205 | static struct plx_pci_card_info plx_pci_card_info_ixxat = { |
206 | "IXXAT PC-I 04/PCI", 2, | 206 | "IXXAT PC-I 04/PCI", 2, |
207 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 207 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
208 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x200, 0x80} }, | 208 | {0, 0x00, 0x00}, { {2, 0x00, 0x80}, {2, 0x200, 0x80} }, |
@@ -210,7 +210,7 @@ static struct plx_pci_card_info plx_pci_card_info_ixxat __devinitdata = { | |||
210 | /* based on PLX9050 */ | 210 | /* based on PLX9050 */ |
211 | }; | 211 | }; |
212 | 212 | ||
213 | static struct plx_pci_card_info plx_pci_card_info_marathon __devinitdata = { | 213 | static struct plx_pci_card_info plx_pci_card_info_marathon = { |
214 | "Marathon CAN-bus-PCI", 2, | 214 | "Marathon CAN-bus-PCI", 2, |
215 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 215 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
216 | {0, 0x00, 0x00}, { {2, 0x00, 0x00}, {4, 0x00, 0x00} }, | 216 | {0, 0x00, 0x00}, { {2, 0x00, 0x00}, {4, 0x00, 0x00} }, |
@@ -218,7 +218,7 @@ static struct plx_pci_card_info plx_pci_card_info_marathon __devinitdata = { | |||
218 | /* based on PLX9052 */ | 218 | /* based on PLX9052 */ |
219 | }; | 219 | }; |
220 | 220 | ||
221 | static struct plx_pci_card_info plx_pci_card_info_tews __devinitdata = { | 221 | static struct plx_pci_card_info plx_pci_card_info_tews = { |
222 | "TEWS TECHNOLOGIES TPMC810", 2, | 222 | "TEWS TECHNOLOGIES TPMC810", 2, |
223 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 223 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
224 | {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} }, | 224 | {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} }, |
@@ -226,7 +226,7 @@ static struct plx_pci_card_info plx_pci_card_info_tews __devinitdata = { | |||
226 | /* based on PLX9030 */ | 226 | /* based on PLX9030 */ |
227 | }; | 227 | }; |
228 | 228 | ||
229 | static struct plx_pci_card_info plx_pci_card_info_cti __devinitdata = { | 229 | static struct plx_pci_card_info plx_pci_card_info_cti = { |
230 | "Connect Tech Inc. CANpro/104-Plus Opto (CRG001)", 2, | 230 | "Connect Tech Inc. CANpro/104-Plus Opto (CRG001)", 2, |
231 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, | 231 | PLX_PCI_CAN_CLOCK, PLX_PCI_OCR, PLX_PCI_CDR, |
232 | {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} }, | 232 | {0, 0x00, 0x00}, { {2, 0x000, 0x80}, {2, 0x100, 0x80} }, |
@@ -484,7 +484,7 @@ static void plx_pci_del_card(struct pci_dev *pdev) | |||
484 | * Probe PLX90xx based device for the SJA1000 chips and register each | 484 | * Probe PLX90xx based device for the SJA1000 chips and register each |
485 | * available CAN channel to SJA1000 Socket-CAN subsystem. | 485 | * available CAN channel to SJA1000 Socket-CAN subsystem. |
486 | */ | 486 | */ |
487 | static int __devinit plx_pci_add_card(struct pci_dev *pdev, | 487 | static int plx_pci_add_card(struct pci_dev *pdev, |
488 | const struct pci_device_id *ent) | 488 | const struct pci_device_id *ent) |
489 | { | 489 | { |
490 | struct sja1000_priv *priv; | 490 | struct sja1000_priv *priv; |
diff --git a/drivers/net/can/sja1000/sja1000_isa.c b/drivers/net/can/sja1000/sja1000_isa.c index 90c5c2dfd2fd..5c8da4661489 100644 --- a/drivers/net/can/sja1000/sja1000_isa.c +++ b/drivers/net/can/sja1000/sja1000_isa.c | |||
@@ -42,11 +42,11 @@ MODULE_LICENSE("GPL v2"); | |||
42 | 42 | ||
43 | static unsigned long port[MAXDEV]; | 43 | static unsigned long port[MAXDEV]; |
44 | static unsigned long mem[MAXDEV]; | 44 | static unsigned long mem[MAXDEV]; |
45 | static int __devinitdata irq[MAXDEV]; | 45 | static int irq[MAXDEV]; |
46 | static int __devinitdata clk[MAXDEV]; | 46 | static int clk[MAXDEV]; |
47 | static unsigned char __devinitdata cdr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; | 47 | static unsigned char cdr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; |
48 | static unsigned char __devinitdata ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; | 48 | static unsigned char ocr[MAXDEV] = {[0 ... (MAXDEV - 1)] = 0xff}; |
49 | static int __devinitdata indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1}; | 49 | static int indirect[MAXDEV] = {[0 ... (MAXDEV - 1)] = -1}; |
50 | 50 | ||
51 | module_param_array(port, ulong, NULL, S_IRUGO); | 51 | module_param_array(port, ulong, NULL, S_IRUGO); |
52 | MODULE_PARM_DESC(port, "I/O port number"); | 52 | MODULE_PARM_DESC(port, "I/O port number"); |
@@ -117,7 +117,7 @@ static void sja1000_isa_port_write_reg_indirect(const struct sja1000_priv *priv, | |||
117 | outb(val, base + 1); | 117 | outb(val, base + 1); |
118 | } | 118 | } |
119 | 119 | ||
120 | static int __devinit sja1000_isa_probe(struct platform_device *pdev) | 120 | static int sja1000_isa_probe(struct platform_device *pdev) |
121 | { | 121 | { |
122 | struct net_device *dev; | 122 | struct net_device *dev; |
123 | struct sja1000_priv *priv; | 123 | struct sja1000_priv *priv; |
@@ -223,7 +223,7 @@ static int __devinit sja1000_isa_probe(struct platform_device *pdev) | |||
223 | return err; | 223 | return err; |
224 | } | 224 | } |
225 | 225 | ||
226 | static int __devexit sja1000_isa_remove(struct platform_device *pdev) | 226 | static int sja1000_isa_remove(struct platform_device *pdev) |
227 | { | 227 | { |
228 | struct net_device *dev = dev_get_drvdata(&pdev->dev); | 228 | struct net_device *dev = dev_get_drvdata(&pdev->dev); |
229 | struct sja1000_priv *priv = netdev_priv(dev); | 229 | struct sja1000_priv *priv = netdev_priv(dev); |
@@ -248,7 +248,7 @@ static int __devexit sja1000_isa_remove(struct platform_device *pdev) | |||
248 | 248 | ||
249 | static struct platform_driver sja1000_isa_driver = { | 249 | static struct platform_driver sja1000_isa_driver = { |
250 | .probe = sja1000_isa_probe, | 250 | .probe = sja1000_isa_probe, |
251 | .remove = __devexit_p(sja1000_isa_remove), | 251 | .remove = sja1000_isa_remove, |
252 | .driver = { | 252 | .driver = { |
253 | .name = DRV_NAME, | 253 | .name = DRV_NAME, |
254 | .owner = THIS_MODULE, | 254 | .owner = THIS_MODULE, |
diff --git a/drivers/net/can/sja1000/sja1000_of_platform.c b/drivers/net/can/sja1000/sja1000_of_platform.c index e45258d4369b..0f5917000aa2 100644 --- a/drivers/net/can/sja1000/sja1000_of_platform.c +++ b/drivers/net/can/sja1000/sja1000_of_platform.c | |||
@@ -70,7 +70,7 @@ static void sja1000_ofp_write_reg(const struct sja1000_priv *priv, | |||
70 | iowrite8(val, priv->reg_base + reg); | 70 | iowrite8(val, priv->reg_base + reg); |
71 | } | 71 | } |
72 | 72 | ||
73 | static int __devexit sja1000_ofp_remove(struct platform_device *ofdev) | 73 | static int sja1000_ofp_remove(struct platform_device *ofdev) |
74 | { | 74 | { |
75 | struct net_device *dev = dev_get_drvdata(&ofdev->dev); | 75 | struct net_device *dev = dev_get_drvdata(&ofdev->dev); |
76 | struct sja1000_priv *priv = netdev_priv(dev); | 76 | struct sja1000_priv *priv = netdev_priv(dev); |
@@ -90,7 +90,7 @@ static int __devexit sja1000_ofp_remove(struct platform_device *ofdev) | |||
90 | return 0; | 90 | return 0; |
91 | } | 91 | } |
92 | 92 | ||
93 | static int __devinit sja1000_ofp_probe(struct platform_device *ofdev) | 93 | static int sja1000_ofp_probe(struct platform_device *ofdev) |
94 | { | 94 | { |
95 | struct device_node *np = ofdev->dev.of_node; | 95 | struct device_node *np = ofdev->dev.of_node; |
96 | struct net_device *dev; | 96 | struct net_device *dev; |
@@ -206,7 +206,7 @@ exit_release_mem: | |||
206 | return err; | 206 | return err; |
207 | } | 207 | } |
208 | 208 | ||
209 | static struct of_device_id __devinitdata sja1000_ofp_table[] = { | 209 | static struct of_device_id sja1000_ofp_table[] = { |
210 | {.compatible = "nxp,sja1000"}, | 210 | {.compatible = "nxp,sja1000"}, |
211 | {}, | 211 | {}, |
212 | }; | 212 | }; |
@@ -219,7 +219,7 @@ static struct platform_driver sja1000_ofp_driver = { | |||
219 | .of_match_table = sja1000_ofp_table, | 219 | .of_match_table = sja1000_ofp_table, |
220 | }, | 220 | }, |
221 | .probe = sja1000_ofp_probe, | 221 | .probe = sja1000_ofp_probe, |
222 | .remove = __devexit_p(sja1000_ofp_remove), | 222 | .remove = sja1000_ofp_remove, |
223 | }; | 223 | }; |
224 | 224 | ||
225 | module_platform_driver(sja1000_ofp_driver); | 225 | module_platform_driver(sja1000_ofp_driver); |
diff --git a/drivers/net/can/sja1000/tscan1.c b/drivers/net/can/sja1000/tscan1.c index 9756099a883a..76513dd780c7 100644 --- a/drivers/net/can/sja1000/tscan1.c +++ b/drivers/net/can/sja1000/tscan1.c | |||
@@ -71,7 +71,7 @@ MODULE_LICENSE("GPL"); | |||
71 | #define TSCAN1_SJA1000_XTAL 16000000 | 71 | #define TSCAN1_SJA1000_XTAL 16000000 |
72 | 72 | ||
73 | /* SJA1000 IO base addresses */ | 73 | /* SJA1000 IO base addresses */ |
74 | static const unsigned short tscan1_sja1000_addresses[] __devinitconst = { | 74 | static const unsigned short tscan1_sja1000_addresses[] = { |
75 | 0x100, 0x120, 0x180, 0x1a0, 0x200, 0x240, 0x280, 0x320 | 75 | 0x100, 0x120, 0x180, 0x1a0, 0x200, 0x240, 0x280, 0x320 |
76 | }; | 76 | }; |
77 | 77 | ||
@@ -88,7 +88,7 @@ static void tscan1_write(const struct sja1000_priv *priv, int reg, u8 val) | |||
88 | } | 88 | } |
89 | 89 | ||
90 | /* Probe for a TS-CAN1 board with JP2:JP1 jumper setting ID */ | 90 | /* Probe for a TS-CAN1 board with JP2:JP1 jumper setting ID */ |
91 | static int __devinit tscan1_probe(struct device *dev, unsigned id) | 91 | static int tscan1_probe(struct device *dev, unsigned id) |
92 | { | 92 | { |
93 | struct net_device *netdev; | 93 | struct net_device *netdev; |
94 | struct sja1000_priv *priv; | 94 | struct sja1000_priv *priv; |
@@ -171,7 +171,7 @@ static int __devinit tscan1_probe(struct device *dev, unsigned id) | |||
171 | return -ENXIO; | 171 | return -ENXIO; |
172 | } | 172 | } |
173 | 173 | ||
174 | static int __devexit tscan1_remove(struct device *dev, unsigned id /*unused*/) | 174 | static int tscan1_remove(struct device *dev, unsigned id /*unused*/) |
175 | { | 175 | { |
176 | struct net_device *netdev; | 176 | struct net_device *netdev; |
177 | struct sja1000_priv *priv; | 177 | struct sja1000_priv *priv; |
@@ -197,7 +197,7 @@ static int __devexit tscan1_remove(struct device *dev, unsigned id /*unused*/) | |||
197 | 197 | ||
198 | static struct isa_driver tscan1_isa_driver = { | 198 | static struct isa_driver tscan1_isa_driver = { |
199 | .probe = tscan1_probe, | 199 | .probe = tscan1_probe, |
200 | .remove = __devexit_p(tscan1_remove), | 200 | .remove = tscan1_remove, |
201 | .driver = { | 201 | .driver = { |
202 | .name = "tscan1", | 202 | .name = "tscan1", |
203 | }, | 203 | }, |