diff options
author | Bill Pemberton <wfp5p@virginia.edu> | 2012-11-27 15:59:38 -0500 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-12-22 14:13:45 -0500 |
commit | 0b255e927d47b550620dfd3475ee74b0f52e09c8 (patch) | |
tree | 79927f5e46b3a196f90c2b93494bb88c35ad06ea /drivers/i2c/busses/i2c-piix4.c | |
parent | a49f0d1ea3ec94fc7cf33a7c36a16343b74bd565 (diff) |
i2c: remove __dev* attributes from subsystem
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>
Acked-by: Peter Korsgaard <peter.korsgaard@barco.com> (for ocores and mux-gpio)
Acked-by: Havard Skinnemoen <hskinnemoen@gmail.com> (for i2c-gpio)
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn> (for puf3)
Acked-by: Barry Song <baohua.song@csr.com> (for sirf)
Reviewed-by: Jean Delvare <khali@linux-fr.org>
[wsa: Fixed "foo* bar" flaws while we are here]
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-piix4.c')
-rw-r--r-- | drivers/i2c/busses/i2c-piix4.c | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/drivers/i2c/busses/i2c-piix4.c b/drivers/i2c/busses/i2c-piix4.c index f7216ed2f3a9..39ab78c1a02c 100644 --- a/drivers/i2c/busses/i2c-piix4.c +++ b/drivers/i2c/busses/i2c-piix4.c | |||
@@ -99,7 +99,7 @@ MODULE_PARM_DESC(force_addr, | |||
99 | static int srvrworks_csb5_delay; | 99 | static int srvrworks_csb5_delay; |
100 | static struct pci_driver piix4_driver; | 100 | static struct pci_driver piix4_driver; |
101 | 101 | ||
102 | static struct dmi_system_id __devinitdata piix4_dmi_blacklist[] = { | 102 | static const struct dmi_system_id piix4_dmi_blacklist[] = { |
103 | { | 103 | { |
104 | .ident = "Sapphire AM2RD790", | 104 | .ident = "Sapphire AM2RD790", |
105 | .matches = { | 105 | .matches = { |
@@ -119,7 +119,7 @@ static struct dmi_system_id __devinitdata piix4_dmi_blacklist[] = { | |||
119 | 119 | ||
120 | /* The IBM entry is in a separate table because we only check it | 120 | /* The IBM entry is in a separate table because we only check it |
121 | on Intel-based systems */ | 121 | on Intel-based systems */ |
122 | static struct dmi_system_id __devinitdata piix4_dmi_ibm[] = { | 122 | static const struct dmi_system_id piix4_dmi_ibm[] = { |
123 | { | 123 | { |
124 | .ident = "IBM", | 124 | .ident = "IBM", |
125 | .matches = { DMI_MATCH(DMI_SYS_VENDOR, "IBM"), }, | 125 | .matches = { DMI_MATCH(DMI_SYS_VENDOR, "IBM"), }, |
@@ -131,8 +131,8 @@ struct i2c_piix4_adapdata { | |||
131 | unsigned short smba; | 131 | unsigned short smba; |
132 | }; | 132 | }; |
133 | 133 | ||
134 | static int __devinit piix4_setup(struct pci_dev *PIIX4_dev, | 134 | static int piix4_setup(struct pci_dev *PIIX4_dev, |
135 | const struct pci_device_id *id) | 135 | const struct pci_device_id *id) |
136 | { | 136 | { |
137 | unsigned char temp; | 137 | unsigned char temp; |
138 | unsigned short piix4_smba; | 138 | unsigned short piix4_smba; |
@@ -230,8 +230,8 @@ static int __devinit piix4_setup(struct pci_dev *PIIX4_dev, | |||
230 | return piix4_smba; | 230 | return piix4_smba; |
231 | } | 231 | } |
232 | 232 | ||
233 | static int __devinit piix4_setup_sb800(struct pci_dev *PIIX4_dev, | 233 | static int piix4_setup_sb800(struct pci_dev *PIIX4_dev, |
234 | const struct pci_device_id *id) | 234 | const struct pci_device_id *id) |
235 | { | 235 | { |
236 | unsigned short piix4_smba; | 236 | unsigned short piix4_smba; |
237 | unsigned short smba_idx = 0xcd6; | 237 | unsigned short smba_idx = 0xcd6; |
@@ -294,9 +294,9 @@ static int __devinit piix4_setup_sb800(struct pci_dev *PIIX4_dev, | |||
294 | return piix4_smba; | 294 | return piix4_smba; |
295 | } | 295 | } |
296 | 296 | ||
297 | static int __devinit piix4_setup_aux(struct pci_dev *PIIX4_dev, | 297 | static int piix4_setup_aux(struct pci_dev *PIIX4_dev, |
298 | const struct pci_device_id *id, | 298 | const struct pci_device_id *id, |
299 | unsigned short base_reg_addr) | 299 | unsigned short base_reg_addr) |
300 | { | 300 | { |
301 | /* Set up auxiliary SMBus controllers found on some | 301 | /* Set up auxiliary SMBus controllers found on some |
302 | * AMD chipsets e.g. SP5100 (SB700 derivative) */ | 302 | * AMD chipsets e.g. SP5100 (SB700 derivative) */ |
@@ -540,9 +540,8 @@ MODULE_DEVICE_TABLE (pci, piix4_ids); | |||
540 | static struct i2c_adapter *piix4_main_adapter; | 540 | static struct i2c_adapter *piix4_main_adapter; |
541 | static struct i2c_adapter *piix4_aux_adapter; | 541 | static struct i2c_adapter *piix4_aux_adapter; |
542 | 542 | ||
543 | static int __devinit piix4_add_adapter(struct pci_dev *dev, | 543 | static int piix4_add_adapter(struct pci_dev *dev, unsigned short smba, |
544 | unsigned short smba, | 544 | struct i2c_adapter **padap) |
545 | struct i2c_adapter **padap) | ||
546 | { | 545 | { |
547 | struct i2c_adapter *adap; | 546 | struct i2c_adapter *adap; |
548 | struct i2c_piix4_adapdata *adapdata; | 547 | struct i2c_piix4_adapdata *adapdata; |
@@ -588,8 +587,7 @@ static int __devinit piix4_add_adapter(struct pci_dev *dev, | |||
588 | return 0; | 587 | return 0; |
589 | } | 588 | } |
590 | 589 | ||
591 | static int __devinit piix4_probe(struct pci_dev *dev, | 590 | static int piix4_probe(struct pci_dev *dev, const struct pci_device_id *id) |
592 | const struct pci_device_id *id) | ||
593 | { | 591 | { |
594 | int retval; | 592 | int retval; |
595 | 593 | ||
@@ -626,7 +624,7 @@ static int __devinit piix4_probe(struct pci_dev *dev, | |||
626 | return 0; | 624 | return 0; |
627 | } | 625 | } |
628 | 626 | ||
629 | static void __devexit piix4_adap_remove(struct i2c_adapter *adap) | 627 | static void piix4_adap_remove(struct i2c_adapter *adap) |
630 | { | 628 | { |
631 | struct i2c_piix4_adapdata *adapdata = i2c_get_adapdata(adap); | 629 | struct i2c_piix4_adapdata *adapdata = i2c_get_adapdata(adap); |
632 | 630 | ||
@@ -638,7 +636,7 @@ static void __devexit piix4_adap_remove(struct i2c_adapter *adap) | |||
638 | } | 636 | } |
639 | } | 637 | } |
640 | 638 | ||
641 | static void __devexit piix4_remove(struct pci_dev *dev) | 639 | static void piix4_remove(struct pci_dev *dev) |
642 | { | 640 | { |
643 | if (piix4_main_adapter) { | 641 | if (piix4_main_adapter) { |
644 | piix4_adap_remove(piix4_main_adapter); | 642 | piix4_adap_remove(piix4_main_adapter); |
@@ -655,7 +653,7 @@ static struct pci_driver piix4_driver = { | |||
655 | .name = "piix4_smbus", | 653 | .name = "piix4_smbus", |
656 | .id_table = piix4_ids, | 654 | .id_table = piix4_ids, |
657 | .probe = piix4_probe, | 655 | .probe = piix4_probe, |
658 | .remove = __devexit_p(piix4_remove), | 656 | .remove = piix4_remove, |
659 | }; | 657 | }; |
660 | 658 | ||
661 | module_pci_driver(piix4_driver); | 659 | module_pci_driver(piix4_driver); |